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: config/config.go
+19-40Lines changed: 19 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
package config
2
2
3
3
import (
4
+
"bytes"
4
5
"errors"
5
6
"fmt"
6
7
"io"
7
8
"os"
8
9
"path/filepath"
9
10
"strings"
10
11
11
-
"github.com/charmbracelet/log"
12
12
"github.com/google/shlex"
13
13
"github.com/mitchellh/go-homedir"
14
14
"github.com/spf13/viper"
@@ -70,7 +70,7 @@ type Modifier struct {
70
70
}
71
71
72
72
typeCodeConfigstruct {
73
-
Langstring`yaml:"lang" mapstructure:"lang" comment:"Language of code generated for questions: go, python, ... \n(will be override by project config and flag --lang)"`
73
+
Langstring`yaml:"lang" mapstructure:"lang" comment:"Language of code generated for questions: go, cpp, python, java... \n(will be overridden by command line flag -l/--lang)"`
SeparateDescriptionFilebool`yaml:"separate_description_file" mapstructure:"separate_description_file" comment:"Generate question description into a separate question.md file"`
76
76
Blocks []Block`yaml:"blocks,omitempty" mapstructure:"blocks" comment:"Default block definitions for all languages"`
@@ -120,7 +120,7 @@ type LeetCodeConfig struct {
120
120
CredentialsCredentials`yaml:"credentials" mapstructure:"credentials" comment:"Credentials to access LeetCode"`
0 commit comments