Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Added option to list sessions with the certain status #3015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Dzordzu
Copy link

@Dzordzu Dzordzu commented Dec 19, 2023

Usage

dzordzu@dotdurda-gentoo ~/external/zellij $ ./target/release/zellij list-sessions -h zellij-list-sessions
List active sessions

USAGE:
    zellij list-sessions [OPTIONS]

OPTIONS:
    -h, --help               Print help information
    -n, --no-formatting      Do not add colors and formatting to the list (useful for
 parsing)
    -s, --short              Print just the session name
    -S, --status <STATUS>    List sessions with the certain statuses: alive, exited
    
 
dzordzu@dotdurda-gentoo ~/external/zellij $ ./target/release/zellij list-sessions -S alive
glowing-ocelot [Created 7s ago]


dzordzu@dotdurda-gentoo ~/external/zellij $ ./target/release/zellij list-sessions -S al
glowing-ocelot [Created 13s ago]


dzordzu@dotdurda-gentoo ~/external/zellij $ ./target/release/zellij list-sessions -S exited


No zellij sessions found matching following statuses: [Exited]


dzordzu@dotdurda-gentoo ~/external/zellij $ ./target/release/zellij list-sessions -S xx
error: Invalid value "xx" for '--status <STATUS>': Unknown status

For more information try --help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant