Skip to content

Commit

Permalink
update docs/cli
Browse files Browse the repository at this point in the history
Signed-off-by: Karen Almog <[email protected]>
  • Loading branch information
Karen Almog committed Dec 23, 2021
1 parent 7670fbc commit b50bf8c
Show file tree
Hide file tree
Showing 146 changed files with 8,951 additions and 315 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/cli/** linguist-generated=true
1 change: 1 addition & 0 deletions cmd/config/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ func NewValidateCmd() *cobra.Command {
}

cmd.PersistentFlags().AddFlagSet(config.GetPersistentFlagSet())
cmd.Flags().AddFlagSet(config.FileInputFlag())
return cmd
}
5 changes: 0 additions & 5 deletions cmd/validate/validate.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*
Copyright 2021 k0s authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -31,7 +28,6 @@ func NewValidateCmd() *cobra.Command {
Hidden: true,
}
cmd.AddCommand(newConfigCmd())
cmd.AddCommand(validateConfigCmd())
cmd.SilenceUsage = true
return cmd
}
Expand All @@ -41,6 +37,5 @@ func newConfigCmd() *cobra.Command {
cmd.Use = "config"
cmd.Deprecated = "use 'k0s config validate' instead"
cmd.Hidden = false
cmd.Flags().AddFlagSet(config.FileInputFlag())
return cmd
}
45 changes: 25 additions & 20 deletions docs/cli/k0s.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions docs/cli/k0s_airgap.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions docs/cli/k0s_airgap_list-images.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 12 additions & 9 deletions docs/cli/k0s_api.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions docs/cli/k0s_backup.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 22 additions & 38 deletions docs/cli/k0s_completion.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/cli/k0s_config.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/cli/k0s_config_create.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/cli/k0s_config_validate.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b50bf8c

Please sign in to comment.