Add a flag to the list and choose commands to provide a means of excluding currently attached sessions when generting a list of current tmux sessions.
closes #50
help output
```
❯ go run *.go list --help
NAME:
sesh list - List sessions
USAGE:
sesh list [command options] [arguments...]
OPTIONS:
--tmux, -t show tmux sessions (default: false)
--zoxide, -z show zoxide results (default: false)
--hide-attached, -H don't show currently attached sessions (default: false)
--help, -h show help
```
```
❯ go run *.go choose -h
NAME:
sesh choose - Select session
USAGE:
sesh choose [command options] [arguments...]
OPTIONS:
--tmux, -t show tmux sessions (default: false)
--zoxide, -z show zoxide results (default: false)
--hide-attached, -H don't show currently attached sessions (default: false)
--help, -h show help
```
show attached
```
❯ go run *.go list
default
```
hide attached
```
❯ go run *.go list --hide-attached
❯
```
```
❯ go run *.go list -H
❯
```
Add a flag to the
list
andchoose
commands to provide a means of excluding currently attached sessions when generting a list of current tmux sessions.closes #50
help output
``` ❯ go run *.go list --help NAME: sesh list - List sessions USAGE: sesh list [command options] [arguments...] OPTIONS: --tmux, -t show tmux sessions (default: false) --zoxide, -z show zoxide results (default: false) --hide-attached, -H don't show currently attached sessions (default: false) --help, -h show help ``` ``` ❯ go run *.go choose -h NAME: sesh choose - Select session USAGE: sesh choose [command options] [arguments...] OPTIONS: --tmux, -t show tmux sessions (default: false) --zoxide, -z show zoxide results (default: false) --hide-attached, -H don't show currently attached sessions (default: false) --help, -h show help ```
show attached
``` ❯ go run *.go list default ```
hide attached
``` ❯ go run *.go list --hide-attached ❯ ``` ``` ❯ go run *.go list -H ❯ ```