We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2317ced commit 5489025Copy full SHA for 5489025
test/sharness/t0010-basic-commands.sh
@@ -88,6 +88,20 @@ test_expect_failure "All ipfs root commands are mentioned in base helptext" '
88
fi
89
'
90
91
+test_expect_failure "All ipfs commands docs are 80 columns or less" '
92
+ echo 0 > fail
93
+ while read cmd
94
+ do
95
+ LENGTH="$($cmd --help | awk "{ print length }" | sort -nr | head -1)"
96
+ [ $LENGTH -gt 80 ] &&
97
+ { echo "$cmd" help text is longer than 79 chars "($LENGTH)"; echo 1 > fail; }
98
+ done <commands.txt
99
+
100
+ if [ $(cat fail) = 1 ]; then
101
+ return 1
102
+ fi
103
+'
104
105
test_expect_success "'ipfs commands --flags' succeeds" '
106
ipfs commands --flags >commands.txt
107
0 commit comments