1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

comma test runner (#715)

- Stabilized the format
- Test suit runner
- Support batch mode
- Watch supports postpone
- `settings.theme`
- docker.nu Simplify process-list logic

---------

Co-authored-by: nash <nash@iffy.me>
This commit is contained in:
fj0r 2023-12-29 23:49:28 +08:00 committed by GitHub
parent b9cfa0d204
commit 9b7c1772e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1340 additions and 464 deletions

View file

@ -526,7 +526,7 @@ export def kgno [] {
def "nu-complete kube deploys and pods" [context: string, offset: int] {
let ctx = $context | argx parse
let ns = $ctx.namespace? | with-flag -n
if ($ctx._pos.pod? | default '' | str ends-with '-') {
if ($ctx.a? | default false) or ($ctx._pos.pod? | default '' | str ends-with '-') {
kubectl get $ns pods | from ssv -a | get NAME
} else {
kubectl get $ns deployments | from ssv -a | get NAME | each {|x| $"($x)-"}
@ -588,6 +588,7 @@ export def --wrapped ka [
--namespace (-n): string@"nu-complete kube ns"
--container(-c): string@"nu-complete kube ctns"
--selector(-l): string
--all-pods(-a)
...args
] {
let n = $namespace | with-flag -n
@ -634,6 +635,7 @@ export def kl [
--container(-c): string@"nu-complete kube ctns"
--follow(-f)
--previous(-p)
--all-pods(-a)
] {
let n = $namespace | with-flag -n
let c = $container | with-flag -c