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
versionFlag=flag.Bool("version", false, "version for git-prompt-string")
23
+
configPath=flag.String("config", "", "The filepath of the git-prompt-string toml configuration.")
24
+
promptPrefix=flag.String("prompt-prefix", " \ue0a0 ", "A prefix that is added to the beginning of the prompt. The\npowerline icon is used be default. It is recommended to\nuse a Nerd Font to properly display the (nf-pl-branch) icon.\nSee https://www.nerdfonts.com/ to download a Nerd Font. If you\ndo not want this symbol, replace the prompt prefix with \"\".\n\\ue0a0 is the unicode representation of .")
25
+
promptSuffix=flag.String("prompt-suffix", "", "A suffix that is added to the end of the prompt.")
26
+
aheadFormat=flag.String("ahead-format", "↑[%v]", "The format used to indicate the number of commits ahead of the\nremote branch. The %v verb represents the number of commits\nahead. One %v verb is required.")
27
+
behindFormat=flag.String("behind-format", "↓[%v]", "The format used to indicate the number of commits behind the\nremote branch. The %v verb represents the number of commits\nbehind. One %v verb is required.")
28
+
divergedFormat=flag.String("diverged-format", "↕ ↑[%v] ↓[%v]", "The format used to indicate the number of commits diverged\nfrom the remote branch. The first %v verb represents the number\nof commits ahead of the remote branch. The second %v verb\nrepresents the number of commits behind the remote branch. Two\n%v verbs are required.")
29
+
noUpstreamRemoteFormat=flag.String("no-upstream-remote-format", " → %v/%v", "The format used to indicate when there is no remote upstream,\nbut there is still a remote branch configured. The first %v\nrepresents the remote repository. The second %v represents the\nremote branch. Two %v are required.")
30
+
colorDisabled=flag.Bool("color-disabled", false, "Disable all colors in the prompt.")
31
+
colorClean=flag.String("color-clean", "green", "The color of the prompt when the working directory is clean.\n")
32
+
colorDelta=flag.String("color-delta", "yellow", "The color of the prompt when the local branch is ahead, behind,\nor has diverged from the remote branch.")
33
+
colorDirty=flag.String("color-dirty", "red", "The color of the prompt when the working directory has changes\nthat have not yet been committed.")
34
+
colorUntracked=flag.String("color-untracked", "magenta", "The color of the prompt when there are untracked files in the\nworking directory.")
35
+
colorNoUpstream=flag.String("color-no-upstream", "bright-black", "The color of the prompt when there is no remote upstream branch.\n")
36
+
colorMerging=flag.String("color-merging", "blue", "The color of the prompt during a merge, rebase, cherry-pick,\nrevert, or bisect.")
37
+
versionFlag=flag.Bool("version", false, "Print version information for git-prompt-string.")
38
38
)
39
39
40
+
funcheader() string {
41
+
varsb strings.Builder
42
+
sb.WriteString("\n")
43
+
sb.WriteString("git-prompt-string: a shell agnostic git prompt written in Go.\n")
0 commit comments