From 398497a94a5e8b4539dacd43e159b9eb1815420b Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Mon, 25 Mar 2024 13:28:36 -0400 Subject: [PATCH] Fix some typos --- cmd/attacknet/main.go | 6 +++--- pkg/project/project.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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) }