From 0e109009b0b465ec3dbfaa7a325f33d9b17c1479 Mon Sep 17 00:00:00 2001 From: youarefree123 Date: Tue, 12 Dec 2023 15:36:03 +0800 Subject: [PATCH] [feat]:add export cmd for export the yaml that tools-v2 used Signed-off-by: youarefree123 --- cli/command/cmd.go | 1 - cli/command/config/cmd.go | 1 + cli/command/{ => config}/export.go | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename cli/command/{ => config}/export.go (99%) diff --git a/cli/command/cmd.go b/cli/command/cmd.go index 23baf4189..91faca5bd 100644 --- a/cli/command/cmd.go +++ b/cli/command/cmd.go @@ -84,7 +84,6 @@ func addSubCommands(cmd *cobra.Command, curveadm *cli.CurveAdm) { NewStopCommand(curveadm), // curveadm stop NewSupportCommand(curveadm), // curveadm support NewUpgradeCommand(curveadm), // curveadm upgrade - NewExportCommand(curveadm), // curveadm export // commonly used shorthands hosts.NewSSHCommand(curveadm), // curveadm ssh hosts.NewPlaybookCommand(curveadm), // curveadm playbook diff --git a/cli/command/config/cmd.go b/cli/command/config/cmd.go index 858ebc615..fdb6b5a2b 100644 --- a/cli/command/config/cmd.go +++ b/cli/command/config/cmd.go @@ -42,6 +42,7 @@ func NewConfigCommand(curveadm *cli.CurveAdm) *cobra.Command { NewShowCommand(curveadm), NewDiffCommand(curveadm), NewCommitCommand(curveadm), + NewExportCommand(curveadm), ) return cmd } diff --git a/cli/command/export.go b/cli/command/config/export.go similarity index 99% rename from cli/command/export.go rename to cli/command/config/export.go index c94c05d0a..f42b9072a 100644 --- a/cli/command/export.go +++ b/cli/command/config/export.go @@ -22,7 +22,7 @@ // __SIGN_BY_YOUAREFREE123__ -package command +package config import ( "path"