Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Shell tab completion for kat #3

Open
arrdem opened this issue Oct 16, 2018 · 1 comment
Open

Shell tab completion for kat #3

arrdem opened this issue Oct 16, 2018 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@arrdem
Copy link
Owner

arrdem commented Oct 16, 2018

./kat should at least be able to tab-complete the available tasks

Relates to #2, in that server side tasks and script tasks both need to be enumerable depending on how the decomposition of task duties shakes out.

@arrdem arrdem added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 17, 2018
@arrdem arrdem changed the title Implement tab completion / integration Shell tab completion for kat Oct 17, 2018
@arrdem
Copy link
Owner Author

arrdem commented Oct 17, 2018

Using list-tasks and jq -r .tasks[], it should be very simple to at least build up the list of supported tasks to tab complete against.

Flags for kat itself are hard-coded and unlikely to change.

Support for enumerating and tab completing targets is also possible via list-targets and jq -r '.targets|keys|.[]'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant