Skip to content

Commit 01cd722

Browse files
Fix run template live with args
1 parent 3bf190d commit 01cd722

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/template.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ func initTemplate(rootContext cli.RootContext) {
4646
cluster = templateCmd.PersistentFlags().String("cluster", "", "Specify cluster for template (only used with --live)")
4747

4848
templateCmd.Run = func(cmd *cobra.Command, args []string) {
49-
// --live without kind: list available kinds from server
5049
if *live {
51-
runTemplateLive(rootContext, nil, file, edit, apply, cluster)
50+
runTemplateLive(rootContext, args, file, edit, apply, cluster)
5251
} else {
5352
// Original behavior: show help
5453
_ = cmd.Help()

0 commit comments

Comments
 (0)