|
|
@ -43,7 +43,7 @@ result in an error, and the chart will not be saved locally.
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
func newPullCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
func newPullCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
client := action.NewPullWithOpts(action.WithConfig(cfg), action.WithPullOptWriter(out))
|
|
|
|
client := action.NewPullWithOpts(action.WithConfig(cfg))
|
|
|
|
|
|
|
|
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "pull [chart URL | repo/chartname] [...]",
|
|
|
|
Use: "pull [chart URL | repo/chartname] [...]",
|
|
|
@ -87,7 +87,6 @@ func newPullCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
f.BoolVar(&client.VerifyLater, "prov", false, "fetch the provenance file, but don't perform verification")
|
|
|
|
f.BoolVar(&client.VerifyLater, "prov", false, "fetch the provenance file, but don't perform verification")
|
|
|
|
f.StringVar(&client.UntarDir, "untardir", ".", "if untar is specified, this flag specifies the name of the directory into which the chart is expanded")
|
|
|
|
f.StringVar(&client.UntarDir, "untardir", ".", "if untar is specified, this flag specifies the name of the directory into which the chart is expanded")
|
|
|
|
f.StringVarP(&client.DestDir, "destination", "d", ".", "location to write the chart. If this and untardir are specified, untardir is appended to this")
|
|
|
|
f.StringVarP(&client.DestDir, "destination", "d", ".", "location to write the chart. If this and untardir are specified, untardir is appended to this")
|
|
|
|
f.BoolVar(&client.PlainHTTP, "plain-http", false, "install charts from http registry")
|
|
|
|
|
|
|
|
addChartPathOptionsFlags(f, &client.ChartPathOptions)
|
|
|
|
addChartPathOptionsFlags(f, &client.ChartPathOptions)
|
|
|
|
|
|
|
|
|
|
|
|
err := cmd.RegisterFlagCompletionFunc("version", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
|
|
|
err := cmd.RegisterFlagCompletionFunc("version", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
|
|
|