Skip to content

Commit

Permalink
Build CLI docs and shell completions
Browse files Browse the repository at this point in the history
  • Loading branch information
sblaisot authored and github-actions[bot] committed Nov 8, 2023
1 parent 8cabafe commit d8de421
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/cli/cozy-stack_serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ example), you can use the --appdir flag like this:
--log-level string define the log level (default "info")
--log-syslog use the local syslog for logging
--mail-alert-address string mail address used for alerts (instance deletion failure for example)
--mail-disable-tls disable smtp over tls
--mail-disable-tls disable starttls on smtp
--mail-host string mail smtp host (default "localhost")
--mail-local-name string hostname sent to the smtp server with the HELO command (default "localhost")
--mail-noreply-address string mail address used for sending mail as a noreply (forgot passwords for example)
--mail-noreply-name string mail name used for sending mail as a noreply (forgot passwords for example)
--mail-password string mail smtp password
--mail-port int mail smtp port (default 465)
--mail-reply-to string mail address used to the reply-to (support for example)
--mail-use-ssl use ssl for mail sending (smtps)
--mail-username string mail smtp username
--mailhog Alias of --mail-disable-tls --mail-port 1025, useful for MailHog
--move-url string URL for the move wizard (default "https://move.cozycloud.cc/")
Expand Down
5 changes: 4 additions & 1 deletion scripts/completion/cozy-stack.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ __cozy-stack_handle_go_custom_completion()
local out requestComp lastParam lastChar comp directive args

# Prepare the command to request completions for the program.
# Calling ${words[0]} instead of directly cozy-stack allows to handle aliases
# Calling ${words[0]} instead of directly cozy-stack allows handling aliases
args=("${words[@]:1}")
# Disable ActiveHelp which is not supported for bash completion v1
requestComp="COZY_STACK_ACTIVE_HELP=0 ${words[0]} __completeNoDesc ${args[*]}"
Expand Down Expand Up @@ -3888,6 +3888,8 @@ _cozy-stack_serve()
flags+=("--mail-disable-tls")
flags+=("--mail-host=")
two_word_flags+=("--mail-host")
flags+=("--mail-local-name=")
two_word_flags+=("--mail-local-name")
flags+=("--mail-noreply-address=")
two_word_flags+=("--mail-noreply-address")
flags+=("--mail-noreply-name=")
Expand All @@ -3898,6 +3900,7 @@ _cozy-stack_serve()
two_word_flags+=("--mail-port")
flags+=("--mail-reply-to=")
two_word_flags+=("--mail-reply-to")
flags+=("--mail-use-ssl")
flags+=("--mail-username=")
two_word_flags+=("--mail-username")
flags+=("--mailhog")
Expand Down
2 changes: 1 addition & 1 deletion scripts/completion/cozy-stack.fish
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function __cozy_stack_clear_perform_completion_once_result
__cozy_stack_debug ""
__cozy_stack_debug "========= clearing previously set __cozy_stack_perform_completion_once_result variable =========="
set --erase __cozy_stack_perform_completion_once_result
__cozy_stack_debug "Succesfully erased the variable __cozy_stack_perform_completion_once_result"
__cozy_stack_debug "Successfully erased the variable __cozy_stack_perform_completion_once_result"
end

function __cozy_stack_requires_order_preservation
Expand Down

0 comments on commit d8de421

Please sign in to comment.