Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #88

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading