Skip to content

Commit

Permalink
Merge pull request #88 from crytic/typos
Browse files Browse the repository at this point in the history
Fix some typos
  • Loading branch information
bsamuels453 authored Mar 25, 2024
2 parents 3ea4eed + 398497a commit 4fe1d5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/attacknet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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)
}
Expand Down

0 comments on commit 4fe1d5b

Please sign in to comment.