From 8b4e1f7abfa64d8141eed0bcbe8ac52c6a9d2b5b Mon Sep 17 00:00:00 2001 From: Sergey Rubanov Date: Thu, 4 Jul 2024 02:10:19 +0200 Subject: [PATCH] move run command handler to a separate function --- cli/init.go | 266 ++++++++++++++++++++++++++-------------------------- 1 file changed, 134 insertions(+), 132 deletions(-) diff --git a/cli/init.go b/cli/init.go index fee46ae..d2f6644 100644 --- a/cli/init.go +++ b/cli/init.go @@ -256,160 +256,162 @@ func copyFile(srcFile string, dstFile string) error { return os.Chmod(dstFile, srcInfo.Mode()) } -func initCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "init