File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,27 @@ package cmd
3
3
import (
4
4
"fmt"
5
5
6
+ "io"
7
+
6
8
"github.com/exercism/cli/config"
7
9
"github.com/spf13/viper"
8
10
)
9
11
12
+ var (
13
+ // BinaryName is the name of the app.
14
+ // By default this is exercism, but people
15
+ // are free to name this however they want.
16
+ // The usage examples and help strings should reflect
17
+ // the actual name of the binary.
18
+ BinaryName string
19
+ // Out is used to write to information.
20
+ Out io.Writer
21
+ // Err is used to write errors.
22
+ Err io.Writer
23
+ // In is used to provide mocked test input (i.e. for prompts).
24
+ In io.Reader
25
+ )
26
+
10
27
const msgWelcomePleaseConfigure = `
11
28
12
29
Welcome to Exercism!
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package cmd
2
2
3
3
import (
4
4
"fmt"
5
- "io"
6
5
"os"
7
6
"runtime"
8
7
@@ -13,21 +12,6 @@ import (
13
12
"github.com/spf13/cobra"
14
13
)
15
14
16
- var (
17
- // BinaryName is the name of the app.
18
- // By default this is exercism, but people
19
- // are free to name this however they want.
20
- // The usage examples and help strings should reflect
21
- // the actual name of the binary.
22
- BinaryName string
23
- // Out is used to write to information.
24
- Out io.Writer
25
- // Err is used to write errors.
26
- Err io.Writer
27
- // In is used to provide mocked test input (i.e. for prompts).
28
- In io.Reader
29
- )
30
-
31
15
// RootCmd represents the base command when called without any subcommands.
32
16
var RootCmd = & cobra.Command {
33
17
Use : BinaryName ,
You can’t perform that action at this time.
0 commit comments