diff --git a/cmd/attacknet/main.go b/cmd/attacknet/main.go index 7aa83c0..bbab591 100644 --- a/cmd/attacknet/main.go +++ b/cmd/attacknet/main.go @@ -12,14 +12,14 @@ import ( var CLI struct { Init struct { - Force bool `arg:"force" optional:"" default:"false" name:"force" help:"Overwrite existing project"` + Force bool `arg:"force" optional:"" default:"false" name:"force" help:"Overwrite existing project."` Path string `arg:"" optional:"" type:"existingdir" name:"path" help:"Path to initialize project on. Defaults to current working directory."` } `cmd:"" help:"Initialize an attacknet project"` Start struct { - Suite string `arg:"" name:"suite name" help:"The test suite to run. These are located in ./test-suites"` + Suite string `arg:"" name:"suite name" help:"The test suite to run. These are located in ./test-suites."` } `cmd:"" help:"Run a specified test suite"` Plan struct { - Name string `arg:"" optional:"" name:"name" help:"The name of the test suite to be generated"` + Name string `arg:"" optional:"" name:"name" help:"The name of the test suite to be generated."` Path string `arg:"" optional:"" type:"existingfile" name:"path" help:"Location of the planner configuration."` } `cmd:"" help:"Construct an attacknet suite for a client"` // Explore struct{} `cmd:"" help:"Run in exploration mode"` diff --git a/pkg/project/project.go b/pkg/project/project.go index e586f4b..f1153c8 100644 --- a/pkg/project/project.go +++ b/pkg/project/project.go @@ -31,7 +31,7 @@ func initializeDirectoriesAndFiles(suitePath string, configPath string) error { return err } - fmt.Print("Todo: we need to create sample files for the suite/types dirs. They will be empty until then.") + fmt.Println("Todo: we need to create sample files for the suite/types dirs. They will be empty until then.") return nil } @@ -42,7 +42,7 @@ func InitializeProject(path string, force bool) error { if !force { exists := projectAlreadyExists(suitePath, configPath) if exists { - errStr := fmt.Sprintf("A project already exsts on %s. Re-run with --force to overwrite.", path) + errStr := fmt.Sprintf("A project already exists on %s. Re-run with --force to overwrite.", path) fmt.Print(errStr) return errors.New(errStr) }