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
add completions to kw deploy
  • Loading branch information
laisnuto committed Jun 4, 2024
commit 00f0d49f2c054764ed3feaa04207cfab17229ca1
27 changes: 26 additions & 1 deletion custom-completions/kw/kw-completions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def "nu-complete kw init arch" [] {
}
}

def "nu-complete kw deploy alert" [] {
["s", "v", "sv", "vs", "n"]
}

# The inglorious kernel developer workflow tool
export extern "kw" [
--help(-h) # Shows help page
Expand All @@ -30,4 +34,25 @@ export extern "kw init" [
--remote: string # <user>@<host>:<port> set the variables ssh_user, ssh_ip, and ssh_port to <user>, <ip>, and <port>, respectively.
--target: string@"nu-complete kw target" # Sets default_deploy_target from kworkflow.config
--verbose # Verbose mode
]
]

# Deploy the kernel
export extern "kw deploy" [
--remote: string, # deploy to a machine in the network
--local # deploy to the host machine
--reboot(-r) # reboot machine after deploy
--no-reboot # do not reboot machine after deploy
--setup # run basic setup in the target machine
--modules(-m) # only install/update modules
--list(-l) # list available kernels in a single column
--list-all(-a) # list all available kernels
--ls-line(-s) # list available kernels separated by comma
--uninstall(-u): string # remove a single or multiple kernels
--force(-f) # remove kernels not installed by kw
--create-package(-p) # create a kw package without deploying
--from-package(-F) # deploy a custom kernel from kw package
--alert: string@"nu-complete kw deploy alert" # set alert behaviour upon command completion
]


export alias "kw d" = kw deploy