Skip to content

Commit

Permalink
Fix submit command usage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerfcsantos committed Oct 12, 2022
1 parent 0513c81 commit 0335b84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 8 additions & 6 deletions cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ const cfgHomeKey = "EXERCISM_CONFIG_HOME"
// test, call the command by calling Execute on the App.
//
// Example:
// cmdTest := &CommandTest{
// Cmd: myCmd,
// InitFn: initMyCmd,
// Args: []string{"fakeapp", "mycommand", "arg1", "--flag", "value"},
// MockInteractiveResponse: "first-input\nsecond\n",
// }
//
// cmdTest := &CommandTest{
// Cmd: myCmd,
// InitFn: initMyCmd,
// Args: []string{"fakeapp", "mycommand", "arg1", "--flag", "value"},
// MockInteractiveResponse: "first-input\nsecond\n",
// }
//
// cmdTest.Setup(t)
// defer cmdTest.Teardown(t)
// ...
Expand Down
4 changes: 3 additions & 1 deletion cmd/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ import (

// submitCmd lets people upload a solution to the website.
var submitCmd = &cobra.Command{
Use: "submit FILE1 [FILE2 ...]",
Use: "submit [FILE1 ...]",
Aliases: []string{"s"},
Short: "Submit your solution to an exercise.",
Long: `Submit your solution to an Exercism exercise.
Call the command with the list of files you want to submit.
If you omit the list of files, the CLI will attempt to submit
automatically the appropriate solution files for the exercise.
`,
RunE: func(cmd *cobra.Command, args []string) error {
cfg := config.NewConfig()
Expand Down

0 comments on commit 0335b84

Please sign in to comment.