-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
632 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Benchy (basic)", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmd/benchy.go", | ||
"args": [ | ||
"-c", | ||
"${workspaceFolder}/test/data/spec_test_load.yaml" | ||
] | ||
}, | ||
{ | ||
"name": "Benchy (csv/raw)", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmd/benchy.go", | ||
"args": [ | ||
"-c", | ||
"${workspaceFolder}/test/data/spec_test_load.yaml", | ||
"--format", | ||
"csv/raw", | ||
"--label=vscode" | ||
] | ||
}, | ||
{ | ||
"name": "Benchy (md)", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmd/benchy.go", | ||
"args": [ | ||
"-c", | ||
"${workspaceFolder}/test/data/spec_test_load.yaml", | ||
"--pipe-stdout=false", | ||
"--silent", | ||
"--format", | ||
"md", | ||
"--label=vscode" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package config | ||
|
||
import ( | ||
"github.com/sha1n/benchy/internal/cli" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// CreateConfigCommand creates the 'config' sub command | ||
func CreateConfigCommand() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "config", | ||
Long: `Interactively walks through a benchmark configuration creation process`, | ||
Short: `interactively creates a benchmark config`, | ||
Run: cli.CreateConfig, | ||
} | ||
|
||
cmd.Flags().StringP(cli.ArgNameOutputFile, "o", "", `output file path. Optional. Writes to stdout by default.`) | ||
|
||
_ = cmd.MarkFlagFilename(cli.ArgNameOutputFile, "yml", "yaml") | ||
|
||
return cmd | ||
} |
Oops, something went wrong.