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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add kw completions for kw init subcommand
  • Loading branch information
OJarrisonn committed Jun 4, 2024
commit 89f1fcf607df73d3f41dde65d1e7c2cdebbe4bd0
33 changes: 33 additions & 0 deletions custom-completions/kw/kw-completions.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
def "nu-complete kw target" [] {
["local", "remote"]
}

def "nu-complete kw init template" [] {
["x86-64", "rpi4-raspbian-32-cross-x86-arm", "rpi4-raspbian-64-cross-x86-arm"]
}

def "nu-complete kw init arch" [] {
if ("arch" | path exists) {
ls arch
| where type == "dir"
| get name
| each {|el| $el | str replace 'arch/' ''}
} else {
[]
}
}

# The inglorious kernel developer workflow tool
export extern "kw" [
--help(-h) # Shows help page
--version(-v) # Shows version
]

# Initalize kworkflow config file
export extern "kw init" [
--template: string@"nu-complete kw init template" # Uses a template as the kworkflow.config
--arch: string@"nu-complete kw init arch" # Sets the variable arch from the newly created kworkflow.config
--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
]