bay
bay copied to clipboard
Add support for `--quiet` and `--mounted` options in `bay mounts`
(bay) ➜ bay git:(mounts) bay mounts --help
Usage: bay mounts [OPTIONS]
List current dev mounts for all containers.
Options:
-p, --profile-only Filter by current profile.
-m, --mounted Filter by mounted dev mounts.
-v, --verbose / -q, --quiet Full output, or dev mounts names only.
--help Show this message and exit.
Can you please edit the description above to put sample output for each combination of arguments?
I was thinking of making -m
default to true, what do you think?
I like the idea to filter output by
- current profile containers only
- mounted only
but the negative filters might end up being a little weird
Option A
(bay) ➜ bay git:(mounts) ✗ bay mounts --help
Usage: bay mounts [OPTIONS]
List mounted dev mounts from current profile containers.
Options:
+p, --profile-only / -p, --no-profile-only
Filter by current profile.
+m, --mounted-only / -m, --no-mounted-only
Filter by mounted dev mounts.
-v, --verbose / -q, --quiet Full output, or dev mounts names only.
--help Show this message and exit.
Makes sense but not strictly POSIX compat, do we care?
Option B
(bay) ➜ bay git:(mounts) ✗ bay mounts --help
Usage: bay mounts [OPTIONS]
List mounted dev mounts from current profile containers.
Options:
-a, --all-containers Don't filter by current profile.
-m, --all-devmounts Don't filter by mounted dev mounts.
-v, --verbose / -q, --quiet Full output, or dev mounts names only.
--help Show this message and exit.
POSIX compat, but might not feel right at first glance
what are your thoughts?
I like option B better
so the defaults will be: only for the current profile, and only show mounted containers?