git mv orgs/ to organization/

This commit is contained in:
myarmolinsky 2024-09-26 07:48:31 -04:00
parent 4065c5775c
commit 218e0a1b6b
4 changed files with 12 additions and 4 deletions

View File

@ -8,7 +8,7 @@ _balena() {
local context state line curcontext="$curcontext" local context state line curcontext="$curcontext"
# Valid top-level completions # Valid top-level completions
main_commands=( api-key app block build config deploy device devices env fleet internal join leave local login logout logs notes orgs os preload push release scan settings ssh ssh-key support tag tunnel util version whoami ) main_commands=( api-key app block build config deploy device devices env fleet internal join leave local login logout logs notes organization os preload push release scan settings ssh ssh-key support tag tunnel util version whoami )
# Sub-completions # Sub-completions
api_key_cmds=( generate list revoke ) api_key_cmds=( generate list revoke )
app_cmds=( create ) app_cmds=( create )
@ -20,6 +20,7 @@ _balena() {
fleet_cmds=( create list pin purge rename restart rm track-latest ) fleet_cmds=( create list pin purge rename restart rm track-latest )
internal_cmds=( osinit ) internal_cmds=( osinit )
local_cmds=( configure flash ) local_cmds=( configure flash )
organization_cmds=( list )
os_cmds=( build-config configure download initialize versions ) os_cmds=( build-config configure download initialize versions )
release_cmds=( finalize invalidate list validate ) release_cmds=( finalize invalidate list validate )
ssh_key_cmds=( add list rm ) ssh_key_cmds=( add list rm )
@ -72,6 +73,9 @@ _balena_sec_cmds() {
"local") "local")
_describe -t local_cmds 'local_cmd' local_cmds "$@" && ret=0 _describe -t local_cmds 'local_cmd' local_cmds "$@" && ret=0
;; ;;
"organization")
_describe -t organization_cmds 'organization_cmd' organization_cmds "$@" && ret=0
;;
"os") "os")
_describe -t os_cmds 'os_cmd' os_cmds "$@" && ret=0 _describe -t os_cmds 'os_cmd' os_cmds "$@" && ret=0
;; ;;

View File

@ -7,7 +7,7 @@ _balena_complete()
local cur prev local cur prev
# Valid top-level completions # Valid top-level completions
main_commands="api-key app block build config deploy device devices env fleet internal join leave local login logout logs notes orgs os preload push release scan settings ssh ssh-key support tag tunnel util version whoami" main_commands="api-key app block build config deploy device devices env fleet internal join leave local login logout logs notes organization os preload push release scan settings ssh ssh-key support tag tunnel util version whoami"
# Sub-completions # Sub-completions
api_key_cmds="generate list revoke" api_key_cmds="generate list revoke"
app_cmds="create" app_cmds="create"
@ -19,6 +19,7 @@ _balena_complete()
fleet_cmds="create list pin purge rename restart rm track-latest" fleet_cmds="create list pin purge rename restart rm track-latest"
internal_cmds="osinit" internal_cmds="osinit"
local_cmds="configure flash" local_cmds="configure flash"
organization_cmds="list"
os_cmds="build-config configure download initialize versions" os_cmds="build-config configure download initialize versions"
release_cmds="finalize invalidate list validate" release_cmds="finalize invalidate list validate"
ssh_key_cmds="add list rm" ssh_key_cmds="add list rm"
@ -66,6 +67,9 @@ _balena_complete()
local) local)
COMPREPLY=( $(compgen -W "$local_cmds" -- $cur) ) COMPREPLY=( $(compgen -W "$local_cmds" -- $cur) )
;; ;;
organization)
COMPREPLY=( $(compgen -W "$organization_cmds" -- $cur) )
;;
os) os)
COMPREPLY=( $(compgen -W "$os_cmds" -- $cur) ) COMPREPLY=( $(compgen -W "$os_cmds" -- $cur) )
;; ;;

View File

@ -255,7 +255,7 @@ are encouraged to regularly update the balena CLI to the latest version.
- [notes](#notes) - [notes](#notes)
- Organizations - Organization
- [orgs](#orgs) - [orgs](#orgs)
@ -2778,7 +2778,7 @@ device UUID
# Organizations # Organization
## orgs ## orgs