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

feat: added completions for kw #877

Merged
merged 24 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
56af28e
init: created readme.md
OJarrisonn Jun 4, 2024
89f1fcf
feat: add kw completions for kw init subcommand
OJarrisonn Jun 4, 2024
48996fa
Merge branch 'kw-init' into kw
OJarrisonn Jun 4, 2024
00f0d49
add completions to kw deploy
laisnuto Jun 4, 2024
675bad8
feat: kw build completions
OJarrisonn Jun 4, 2024
d6c36d1
Merge branch 'kw-build' into kw
OJarrisonn Jun 4, 2024
84a8867
feat: kw diff completions
OJarrisonn Jun 4, 2024
07e7e43
Merge branch 'kw-diff' into kw
OJarrisonn Jun 4, 2024
5f00f5a
feat: kw ssh completions
OJarrisonn Jun 5, 2024
e538e8e
Merge branch 'completions/kw-ssh' into kw
OJarrisonn Jun 5, 2024
62220a5
feat: completions for help and info related commands
OJarrisonn Jun 5, 2024
fecf2e5
Merge branch 'completions/kw-help' into kw
OJarrisonn Jun 5, 2024
a2931ad
feat: completions for kw: codestyle, self-update, kernel-config-manager
OJarrisonn Jun 5, 2024
5e64d2a
feat: completions for kw config
OJarrisonn Jun 5, 2024
7e41755
feat: add completions for kw remote
OJarrisonn Jun 6, 2024
fc7463b
Merge branch 'completions/kw-remote' into kw
OJarrisonn Jun 11, 2024
83bb2d5
feat: add completions for kw explore
OJarrisonn Jun 11, 2024
97e2ad3
feat: add completions for kw pomodoro
OJarrisonn Jun 11, 2024
c611085
feat: add completions for report
OJarrisonn Jun 11, 2024
dc83dd4
feat: add completions for kw device
OJarrisonn Jun 11, 2024
0722d1b
finish kw completions
laisnuto Jun 11, 2024
e7c57a6
feat: add missing flags to `kw debug`
OJarrisonn Jun 12, 2024
92468f7
delete unecessary nu-complete extern
laisnuto Jun 13, 2024
ad70d3b
feat: add --help to `kw remote`
OJarrisonn Jun 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add completions for kw remote
  • Loading branch information
OJarrisonn committed Jun 6, 2024
commit 7e41755d7b8caaa66ea6bac222be7f2f073ca58b
19 changes: 18 additions & 1 deletion custom-completions/kw/kw-completions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ def "nu-complete kw configs" [] {
| parse --regex '\[.*\] (?<value>[a-z_.]+)=(?<description>.+)$'
}

def "nu-complete kw remotes" [] {
^kw remote --list
| lines
| filter {|line| not ($line | str contains " ")}
}

# The inglorious kernel developer workflow tool
export extern "kw" [
subcommand?: string@"nu-complete kw subcommands" # Subcommand to run
Expand Down Expand Up @@ -230,4 +236,15 @@ export extern "kw config" [
--verbose # Verbose mode
]

export alias "kw g" = kw config
export alias "kw g" = kw config

# Manage set of tracked test machines
export extern "kw remote" [
--global # Force use global config file instead of the local one
--add: string # Adds a remote named <name> for the machine at <remote-address>
--remove: string@"nu-complete kw remotes" # Remove the remote named <name>
--rename: string@"nu-complete kw remotes" # Rename the remote named <old-name> to <new-name>
--list # List all available remotes.
--set-default(-s) # Set the default remote
--verbose(-v) # Verbose mode
]