github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/prompts/internal/paths.go (about) 1 package main 2 3 import ( 4 "github.com/pterm/pterm" 5 "github.com/taubyte/tau-cli/flags" 6 "github.com/taubyte/tau-cli/prompts" 7 "github.com/urfave/cli/v2" 8 ) 9 10 var PathsCommand = &cli.Command{ 11 Name: "paths", 12 Flags: []cli.Flag{ 13 flags.Paths, 14 }, 15 Action: func(ctx *cli.Context) error { 16 17 // New 18 paths := prompts.RequiredPaths(ctx) 19 20 // Edit, sending empty cli context so that the flags are not set 21 paths = prompts.RequiredPaths(&cli.Context{}, paths...) 22 23 pterm.Success.Printfln("Got paths: `%s`", paths) 24 return nil 25 }, 26 }