bash_completion: Add a couple missing commands
Add "bitswap" and "repo" to bash completion for `ipfs stats`. They are listed under `ipfs stats --help`. Also added their respective subcommands. License: MIT Signed-off-by: Nathan Musoke <nathan.musoke@gmail.com>
Nathan Musoke committed
Nov 8, 2016 at 20:51 UTC
ac4200f1ea99165c6213ee0c4281c4f85d6bda08
1 file changed
+11
-1
misc/completion/ipfs-completion.bash
+11
-1
@@ -314,7 +314,12 @@ _ipfs_resolve()
314
315
_ipfs_stats()
316
{
317
- _ipfs_comp "bw --help"
317
+ _ipfs_comp "bitswap bw repo --help"
318
+}
319
+
320
+_ipfs_stats_bitswap()
321
+{
322
+ _ipfs_help_only
323
}
324
325
_ipfs_stats_bw()
@@ -322,6 +327,11 @@ _ipfs_stats_bw()
327
_ipfs_comp "--peer= --proto= --poll --interval= --help"
328
}
329
330
+_ipfs_stats_repo()
331
+{
332
+ _ipfs_comp "--human="
333
+}
334
+
335
_ipfs_swarm()
336
{
337
_ipfs_comp "addrs connect disconnect filters peers --help"