You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gomock_generator/README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ COMMANDS:
18
18
help, h Shows a list of commands or help for one command
19
19
20
20
GLOBAL OPTIONS:
21
-
--mocks-filepath value Path to the JSON file containing the MockConfiguration. Location of this file is the base package. (default: "./mocks.json") [$MOCKS_FILEPATH]
22
-
--signatures-filename value Filename of the signatures cache. Location of this file is the base package. (default: "mocks_sig.json") [$SIGNATURES_FILENAME]
21
+
--mocks-filepath value Path to the JSON file containing the MockConfiguration. Its containing directory is the base package directory. (default: "./mocks.json") [$MOCKS_FILEPATH]
22
+
--signatures-filename value Filename of the signatures cache, written in the base package directory. (default: "mocks_sig.json") [$SIGNATURES_FILENAME]
23
23
--concurrent-goroutines value Concurrent amount of goroutines to generate mock. (default: 4) [$CONCURRENT_GOROUTINES]
Reads the mymocks.json file from the current directory and generates the mocks, 8 goroutines at a time. The signatures of the mocks are stored in sigs.json, in the folder designated by the base package written in mymocks.json.
26
+
Reads the mymocks.json file from the current directory and generates the mocks, 8 goroutines at a time. The signatures of the mocks are stored in sigs.json in the same directory as mymocks.json.
27
27
28
28
`, cli.RootCommandHelpTemplate, os.Args[0])
29
29
@@ -35,8 +35,8 @@ func main() {
35
35
Usage: "Highly parallelized generator of gomock mocks",
36
36
Version: version,
37
37
Flags: []cli.Flag{
38
-
&cli.StringFlag{Name: "mocks-filepath", Value: "./mocks.json", Usage: "Path to the JSON file containing the MockConfiguration. Location of this file is the base package.", Sources: cli.EnvVars("MOCKS_FILEPATH")},
39
-
&cli.StringFlag{Name: "signatures-filename", Value: "mocks_sig.json", Usage: "Filename of the signatures cache. Location of this file is the base package.", Sources: cli.EnvVars("SIGNATURES_FILENAME")},
38
+
&cli.StringFlag{Name: "mocks-filepath", Value: "./mocks.json", Usage: "Path to the JSON file containing the MockConfiguration. Its containing directory is the base package directory.", Sources: cli.EnvVars("MOCKS_FILEPATH")},
39
+
&cli.StringFlag{Name: "signatures-filename", Value: "mocks_sig.json", Usage: "Filename of the signatures cache, written in the base package directory.", Sources: cli.EnvVars("SIGNATURES_FILENAME")},
40
40
&cli.IntFlag{Name: "concurrent-goroutines", Value: 4, Usage: "Concurrent amount of goroutines to generate mock.", Sources: cli.EnvVars("CONCURRENT_GOROUTINES")},
0 commit comments