diff --git a/acceptance/pipelines/install-pipelines-cli/output.txt b/acceptance/pipelines/install-pipelines-cli/output.txt index 3c109daa8c..fe1df4f5c3 100644 --- a/acceptance/pipelines/install-pipelines-cli/output.txt +++ b/acceptance/pipelines/install-pipelines-cli/output.txt @@ -10,6 +10,7 @@ Usage: pipelines [command] Available Commands: + auth Authentication related commands completion Generate the autocompletion script for the specified shell help Help about any command init Initialize a new pipelines project @@ -45,6 +46,7 @@ Usage: pipelines [command] Available Commands: + auth Authentication related commands completion Generate the autocompletion script for the specified shell help Help about any command init Initialize a new pipelines project diff --git a/cmd/pipelines/auth.go b/cmd/pipelines/auth.go new file mode 100644 index 0000000000..f62adff34c --- /dev/null +++ b/cmd/pipelines/auth.go @@ -0,0 +1,10 @@ +package pipelines + +import ( + "github.com/databricks/cli/cmd/auth" + "github.com/spf13/cobra" +) + +func authCommand() *cobra.Command { + return auth.New() +} diff --git a/cmd/pipelines/pipelines.go b/cmd/pipelines/pipelines.go index 7a9d6c6a8b..61808cc60e 100644 --- a/cmd/pipelines/pipelines.go +++ b/cmd/pipelines/pipelines.go @@ -10,5 +10,6 @@ import ( func New(ctx context.Context) *cobra.Command { cli := root.New(ctx) cli.AddCommand(initCommand()) + cli.AddCommand(authCommand()) return cli }