-
Notifications
You must be signed in to change notification settings - Fork 43
WIP: 'abduco' completion #181
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
base: trunk
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,33 @@ | ||||||
| # (C) 2025 unrealapex | ||||||
|
|
||||||
| # Completion script for abduco | ||||||
|
|
||||||
| function completion/abduco { | ||||||
|
|
||||||
| typeset OPTIONS ARGOPT PREFIX | ||||||
| OPTIONS=( #># | ||||||
| "v; print version information to standard output and exit" | ||||||
| "r; readonly session" | ||||||
| "e; set the key to detach" | ||||||
| "f; force creation of session when there is already terminated session of the same name" | ||||||
| "c; create a new session and attach to it" | ||||||
| "n; create a new session but do not attach to it" | ||||||
| "A; try to connect to an existing session, upon failure create said session and attach to it" | ||||||
| "a; attach to an existing session" | ||||||
| "l; attach with the lowest priority" | ||||||
| ) #<# | ||||||
|
|
||||||
| command -f completion//parseoptions -es | ||||||
| case $ARGOPT in | ||||||
| (-) | ||||||
| command -f completion//completeoptions | ||||||
| ;; | ||||||
| (-A|-a|-f) | ||||||
|
||||||
| (-A|-a|-f) | |
| ('') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Session names are only given as arguments to those three arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Every abduco command requires session names given as the first operand unless abduco is given no options or using the -v(print version).
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the correct way to write this completion?
Uh oh!
There was an error while loading. Please reload this page.