Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
update secman package config, update scc vars names
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Mar 12, 2022
1 parent be3d55b commit b18cad9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"private": true,
"version": "6.2.0",
"description": "👊 Human-friendly and amazing TUI secrets manager.",
"main": "core/lib/index.js",
"license": "MIT",
"homepage": "https://secman.dev",
"bugs": "https://github.com/scmn-dev/secman/issues",
"repository": "scmn-dev/secman",
"keywords": [
"password manager",
"password-manager",
"secman",
"cli",
"security",
"secrets management"
"secrets-management",
"secrets"
],
"author": {
"name": "Secman, Inc.",
Expand Down
18 changes: 9 additions & 9 deletions pkg/doctor/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ var (
_, err = looker.LookPath("scc")

smVersionStatus = ""
scStatus = ""
scVersionStatus = ""
sccStatus = ""
sccVersionStatus = ""
secmanConfigStatus = ""
latestVersion = api.GetLatest("secman-cli", false)
latestSCVersion = api.GetLatest("scc", false)
latestSCCVersion = api.GetLatest("scc", false)
outErr, out, errout = gosh.RunOutput("scc -v")
configErr = viper.ReadConfig(bytes.NewBuffer(constants.SecmanConfig()))
)
Expand All @@ -30,9 +30,9 @@ func Doctor(buildVersion string) {
if len(os.Args) > 1 {
if (os.Args[1] == "doctor" || os.Args[1] == "check") {
if err == nil {
scStatus = constants.Checkmark + "secman core cli is installed."
sccStatus = constants.Checkmark + "secman core cli is installed."
} else {
scStatus = constants.X + "secman core cli is not installed."
sccStatus = constants.X + "secman core cli is not installed."
}

if buildVersion != latestVersion {
Expand All @@ -49,10 +49,10 @@ func Doctor(buildVersion string) {
fmt.Println(errout)
os.Exit(0)
} else {
if latestSCVersion == out {
scVersionStatus = constants.Checkmark + "secman core cli on the latest version."
if latestSCCVersion == out {
sccVersionStatus = constants.Checkmark + "secman core cli on the latest version."
} else {
scVersionStatus = constants.X + "secman core cli is not on the latest version."
sccVersionStatus = constants.X + "secman core cli is not on the latest version."
}
}

Expand All @@ -64,7 +64,7 @@ func Doctor(buildVersion string) {
secmanConfigStatus = constants.X + "secman config is not found."
}

fmt.Println(lipgloss.NewStyle().PaddingLeft(2).SetString(constants.Logo("Secman Doctor") + "\n\n" + smVersionStatus + "\n" + scStatus + "\n" + scVersionStatus + "\n" + secmanConfigStatus))
fmt.Println(lipgloss.NewStyle().PaddingLeft(2).SetString(constants.Logo("Secman Doctor") + "\n\n" + smVersionStatus + "\n" + sccStatus + "\n" + sccVersionStatus + "\n" + secmanConfigStatus))
}
}
}
2 changes: 1 addition & 1 deletion pkg/doctor/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Fix(buildVersion string) {
}

if err == nil {
if latestSCVersion != out {
if latestSCCVersion != out {
bug3 = "to upgrade secman core cli to the latest version run " + CommandStyle("`npm update -g @secman/scc`")
}
}
Expand Down

0 comments on commit b18cad9

Please sign in to comment.