Skip to content

Commit

Permalink
Add fn export subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuGongpu committed Jul 24, 2020
1 parent a80a6d1 commit 8850593
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/fncmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
package commands

import (
"github.com/GoogleContainerTools/kpt/internal/docs/generated/fndocs"
"github.com/spf13/cobra"
"sigs.k8s.io/kustomize/cmd/config/configcobra"

"github.com/GoogleContainerTools/kpt/internal/cmdexport"
"github.com/GoogleContainerTools/kpt/internal/docs/generated/fndocs"
)

func GetFnCommand(name string) *cobra.Command {
Expand Down Expand Up @@ -54,6 +56,6 @@ func GetFnCommand(name string) *cobra.Command {
sink.Long = fndocs.SinkShort + "\n" + fndocs.SinkLong
sink.Example = fndocs.SinkExamples

functions.AddCommand(run, source, sink)
functions.AddCommand(run, source, sink, cmdexport.ExportCommand())
return functions
}

0 comments on commit 8850593

Please sign in to comment.