Skip to content

Commit

Permalink
autocomplete update
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctl committed Jun 30, 2021
1 parent b968775 commit ed0b5bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion squareone.autocompletion
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _so()
;;

list)
opts="${opts} --raw --format"
opts="${opts} --raw --format --short"
;;

logs)
Expand Down
5 changes: 3 additions & 2 deletions squareone.autocompletion.fish
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ complete -c so -n '__fish_so_no_subcommand' -l help -d 'Display help for the giv
complete -c so -n '__fish_so_no_subcommand' -l quiet -d 'Do not output any message'
complete -c so -n '__fish_so_no_subcommand' -l verbose -d 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'
complete -c so -n '__fish_so_no_subcommand' -l version -d 'Display this application version'
complete -c so -n '__fish_so_no_subcommand' -l ansi -d 'Force ANSI output'
complete -c so -n '__fish_so_no_subcommand' -l no-ansi -d 'Disable ANSI output'
complete -c so -n '__fish_so_no_subcommand' -l ansi -d 'Force (or disable --no-ansi) ANSI output'
complete -c so -n '__fish_so_no_subcommand' -l no-ansi -d 'Negate the "--ansi" option'
complete -c so -n '__fish_so_no_subcommand' -l no-interaction -d 'Do not ask any interactive question'
complete -c so -n '__fish_so_no_subcommand' -l env -d 'The environment the command should run under'

Expand Down Expand Up @@ -71,6 +71,7 @@ complete -c so -A -n '__fish_seen_subcommand_from help' -l raw -d 'To output raw
# list
complete -c so -A -n '__fish_seen_subcommand_from list' -l raw -d 'To output raw command list'
complete -c so -A -n '__fish_seen_subcommand_from list' -l format -d 'The output format (txt, xml, json, or md)'
complete -c so -A -n '__fish_seen_subcommand_from list' -l short -d 'To skip describing commands\' arguments'

# logs

Expand Down
4 changes: 2 additions & 2 deletions squareone.autocompletion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _so()

if [[ ${cur} == --* ]]; then
state="option"
opts=("--help:Display help for the given command. When no command is given display help for the <info\>list</info\> command" "--quiet:Do not output any message" "--verbose:Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug" "--version:Display this application version" "--ansi:Force ANSI output" "--no-ansi:Disable ANSI output" "--no-interaction:Do not ask any interactive question" "--env:The environment the command should run under")
opts=("--help:Display help for the given command. When no command is given display help for the <info\>list</info\> command" "--quiet:Do not output any message" "--verbose:Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug" "--version:Display this application version" "--ansi:Force \(or disable --no-ansi\) ANSI output" "--no-ansi:Negate the "--ansi" option" "--no-interaction:Do not ask any interactive question" "--env:The environment the command should run under")
elif [[ $cur == $com ]]; then
state="command"
coms=("bootstrap:Bootstrap WordPress: Install core, create an admin user" "composer:Run a composer command in the local docker container" "create:Create a new SquareOne project based off of the square-one framework" "docker-compose:Pass through for docker-compose binary" "help:Display help for a command" "list:List commands" "logs:Displays local SquareOne project docker logs" "migrate-domain:Migrate a recently imported remote database to your local\; Automatically detects the domain name." "open:Open\'s a URL in your default browser or the current SquareOne project" "restart:Restarts your local SquareOne project" "share:Share your local project on a temporary URL using ngrok" "shell:Gives you a bash shell into the php-fpm docker container" "start:Starts your local SquareOne project, run anywhere in a project folder" "stop:Stops your local SquareOne project, run anywhere in a project folder" "test:Run codeception tests in the SquareOne local container" "wp:Run WP CLI commands in the SquareOne local container" "xdebug:Enable/disable Xdebug in the php-fpm container to increase performance on MacOS" "config\:compose-copy:Copies the Global docker-compose.yml file to the local config folder for customization" "config\:copy:Copies the squareone.yml file to the local config folder for customization" "global\:cert:Manually generate a certificate for a local domain" "global\:logs:Displays SquareOne global docker logs" "global\:myadmin:Starts a phpMyAdmin container" "global\:portainer:Launches Portainer docker management" "global\:restart:Restarts the SquareOne global docker containers" "global\:start:Starts the SquareOne global docker containers" "global\:status:Shows all running docker containers" "global\:stop:Stops the SquareOne global docker containers" "global\:stop-all:Stops all running docker containers" "schedule\:finish:Handle the completion of a scheduled command" "schedule\:run:Run the scheduled commands" "self\:update:Updates the application, if available" "self\:update-check:Check if there is an updated release" "vendor\:publish:Publish any publishable assets from vendor packages")
Expand Down Expand Up @@ -50,7 +50,7 @@ _so()
;;

list)
opts+=("--raw:To output raw command list" "--format:The output format \(txt, xml, json, or md\)")
opts+=("--raw:To output raw command list" "--format:The output format \(txt, xml, json, or md\)" "--short:To skip describing commands\' arguments")
;;

logs)
Expand Down

0 comments on commit ed0b5bf

Please sign in to comment.