Commit ac4200f1 authored by Nathan Musoke's avatar Nathan Musoke

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: default avatarNathan Musoke <nathan.musoke@gmail.com>
parent 65001365
......@@ -314,7 +314,12 @@ _ipfs_resolve()
_ipfs_stats()
{
_ipfs_comp "bw --help"
_ipfs_comp "bitswap bw repo --help"
}
_ipfs_stats_bitswap()
{
_ipfs_help_only
}
_ipfs_stats_bw()
......@@ -322,6 +327,11 @@ _ipfs_stats_bw()
_ipfs_comp "--peer= --proto= --poll --interval= --help"
}
_ipfs_stats_repo()
{
_ipfs_comp "--human="
}
_ipfs_swarm()
{
_ipfs_comp "addrs connect disconnect filters peers --help"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment