mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
respect and env vars
This commit is contained in:
@ -180,10 +180,10 @@ func parseCliArgsAndEnvVars() *cliArgs {
|
|||||||
useConfigDir := ""
|
useConfigDir := ""
|
||||||
flaggy.String(&useConfigDir, "ucd", "use-config-dir", "override default config directory with provided directory")
|
flaggy.String(&useConfigDir, "ucd", "use-config-dir", "override default config directory with provided directory")
|
||||||
|
|
||||||
workTree := ""
|
workTree := os.Getenv("GIT_WORK_TREE")
|
||||||
flaggy.String(&workTree, "w", "work-tree", "equivalent of the --work-tree git argument")
|
flaggy.String(&workTree, "w", "work-tree", "equivalent of the --work-tree git argument")
|
||||||
|
|
||||||
gitDir := ""
|
gitDir := os.Getenv("GIT_DIR")
|
||||||
flaggy.String(&gitDir, "g", "git-dir", "equivalent of the --git-dir git argument")
|
flaggy.String(&gitDir, "g", "git-dir", "equivalent of the --git-dir git argument")
|
||||||
|
|
||||||
customConfigFile := ""
|
customConfigFile := ""
|
||||||
|
Reference in New Issue
Block a user