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

Bug 1828194: wire printer flags to oc adm group sync #401

Merged
merged 2 commits into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -2664,18 +2664,29 @@ _oc_adm_groups_sync()
flags_with_completion=()
flags_completion=()

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
flags+=("--blacklist=")
two_word_flags+=("--blacklist")
flags_with_completion+=("--blacklist")
flags_completion+=("__oc_handle_filename_extension_flag txt")
local_nonpersistent_flags+=("--blacklist=")
flags+=("--confirm")
local_nonpersistent_flags+=("--confirm")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--sync-config=")
two_word_flags+=("--sync-config")
flags_with_completion+=("--sync-config")
flags_completion+=("__oc_handle_filename_extension_flag yaml|yml")
local_nonpersistent_flags+=("--sync-config=")
flags+=("--template=")
two_word_flags+=("--template")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--type=")
two_word_flags+=("--type")
local_nonpersistent_flags+=("--type=")
Expand Down Expand Up @@ -12714,18 +12725,29 @@ _oc_ex_sync-groups()
flags_with_completion=()
flags_completion=()

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
flags+=("--blacklist=")
two_word_flags+=("--blacklist")
flags_with_completion+=("--blacklist")
flags_completion+=("__oc_handle_filename_extension_flag txt")
local_nonpersistent_flags+=("--blacklist=")
flags+=("--confirm")
local_nonpersistent_flags+=("--confirm")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--sync-config=")
two_word_flags+=("--sync-config")
flags_with_completion+=("--sync-config")
flags_completion+=("__oc_handle_filename_extension_flag yaml|yml")
local_nonpersistent_flags+=("--sync-config=")
flags+=("--template=")
two_word_flags+=("--template")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--type=")
two_word_flags+=("--type")
local_nonpersistent_flags+=("--type=")
Expand Down
22 changes: 22 additions & 0 deletions contrib/completions/zsh/oc
Original file line number Diff line number Diff line change
Expand Up @@ -2806,18 +2806,29 @@ _oc_adm_groups_sync()
flags_with_completion=()
flags_completion=()

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
flags+=("--blacklist=")
two_word_flags+=("--blacklist")
flags_with_completion+=("--blacklist")
flags_completion+=("__oc_handle_filename_extension_flag txt")
local_nonpersistent_flags+=("--blacklist=")
flags+=("--confirm")
local_nonpersistent_flags+=("--confirm")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--sync-config=")
two_word_flags+=("--sync-config")
flags_with_completion+=("--sync-config")
flags_completion+=("__oc_handle_filename_extension_flag yaml|yml")
local_nonpersistent_flags+=("--sync-config=")
flags+=("--template=")
two_word_flags+=("--template")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--type=")
two_word_flags+=("--type")
local_nonpersistent_flags+=("--type=")
Expand Down Expand Up @@ -12856,18 +12867,29 @@ _oc_ex_sync-groups()
flags_with_completion=()
flags_completion=()

flags+=("--allow-missing-template-keys")
local_nonpersistent_flags+=("--allow-missing-template-keys")
flags+=("--blacklist=")
two_word_flags+=("--blacklist")
flags_with_completion+=("--blacklist")
flags_completion+=("__oc_handle_filename_extension_flag txt")
local_nonpersistent_flags+=("--blacklist=")
flags+=("--confirm")
local_nonpersistent_flags+=("--confirm")
flags+=("--output=")
two_word_flags+=("--output")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--sync-config=")
two_word_flags+=("--sync-config")
flags_with_completion+=("--sync-config")
flags_completion+=("__oc_handle_filename_extension_flag yaml|yml")
local_nonpersistent_flags+=("--sync-config=")
flags+=("--template=")
two_word_flags+=("--template")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--type=")
two_word_flags+=("--type")
local_nonpersistent_flags+=("--type=")
Expand Down
2 changes: 2 additions & 0 deletions pkg/cli/admin/groups/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func NewCmdSync(name, fullName string, f kcmdutil.Factory, streams genericcliopt
cmd.Flags().StringVar(&o.Type, "type", o.Type, "which groups white- and blacklist entries refer to: "+strings.Join(AllowedSourceTypes, ","))
cmd.Flags().BoolVar(&o.Confirm, "confirm", o.Confirm, "if true, modify OpenShift groups; if false, display results of a dry-run")

o.PrintFlags.AddFlags(cmd)

return cmd
}

Expand Down