-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.go
53 lines (40 loc) · 1.98 KB
/
env.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package constant
import "github.com/gookit/color"
const (
CopyrightStartYear = "2023"
// EnvKeyCliVerbose
// Provides the debug flag. This value is true when the command is open debug mode
EnvKeyCliVerbose = "CLI_VERBOSE"
// EnvKeyCliTimeoutSecond
// Provides the timeout second flag
EnvKeyCliTimeoutSecond = "CLI_CONFIG_TIMEOUT_SECOND"
// EnvLogLevel
// env ENV_WEB_LOG_LEVEL default ""
EnvLogLevel string = "CLI_LOG_LEVEL"
DefaultChangelogMarkdownFile = "CHANGELOG.md"
DefaultChangelogLastContentFile = "CHANGELOG.txt"
VersionRcFileName = ".versionrc"
KitName = "convention-change-log"
KitUrl = "https://github.com/convention-change/convention-change-log"
LogLineSpe = "---"
)
var (
CmdOkEmoji = color.Green.Render("✔")
CmdInfoEmoji = color.Blue.Render("ℹ")
CmdWarnEmoji = color.Warn.Render("ℹ")
CmdHelpFinishDryRun = CmdOkEmoji + " finish dry run"
CmdHelpOutputting = CmdOkEmoji + " outputting changes to %s"
CmdHelpCommitting = CmdOkEmoji + " committing %s"
CmdHelpTagRelease = CmdOkEmoji + " tagging release %s"
CmdHelpGitPushRun = CmdInfoEmoji + " Run `git push --follow-tags origin %s` to publish"
CmdHelpFinishGitPush = CmdOkEmoji + " Finish `git push --follow-tags origin %s`"
CmdHelpHasTagRelease = CmdOkEmoji + " has release %s"
CmdHelpGitCommitFail = CmdWarnEmoji + " try git command push fail, please check!"
CmdHelpGitCommitFixHead = CmdInfoEmoji + " you can use this command to check now"
CmdHelpGitCommitCheckBranch = CmdInfoEmoji + " git branch -vv"
CmdHelpGitPushTryAgain = CmdInfoEmoji + " try `git push --follow-tags origin %s` to publish"
CmdHelpGitPushFailHint = CmdWarnEmoji + " if push error show [ error: failed to push ] , please check git remote protection settings"
CmdHelpGitCommitErrorHint = CmdInfoEmoji + " if commit error can use this command fix"
CmdHelpGitCommitFixTag = CmdWarnEmoji + " git tag --delete %s"
CmdHelpGitCommitResetSoft = CmdWarnEmoji + " git reset --soft HEAD^"
)