Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit fc37add

Browse files
committed
selfupdate fix
1 parent cf686af commit fc37add

File tree

5 files changed

+85
-197
lines changed

5 files changed

+85
-197
lines changed

.idea/workspace.xml

Lines changed: 73 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/commands.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"github.com/newclarity/scribeHelpers/loadTools"
55
"github.com/newclarity/scribeHelpers/ux"
66
"github.com/spf13/cobra"
7+
"github.com/wplib/deploywp/defaults"
78
)
89

910
const onlyOnce = "1"
@@ -13,20 +14,20 @@ var onlyTwice = []string{"", ""}
1314
func init() {
1415
rootCmd.AddCommand(buildCmd)
1516
rootCmd.AddCommand(convertCmd)
16-
rootCmd.AddCommand(helpersCmd)
17+
rootCmd.AddCommand(toolsCmd)
1718
rootCmd.AddCommand(loadCmd)
1819
rootCmd.AddCommand(runCmd)
1920
}
2021

2122

2223
var buildCmd = &cobra.Command{
2324
Use: loadTools.CmdBuild,
24-
Short: ux.SprintfBlue("Build a Pantheon website."),
25-
Long: ux.SprintfBlue("Build a Pantheon website."),
25+
Short: ux.SprintfMagenta(defaults.BinaryName) + ux.SprintfBlue(" - Build a Pantheon website."),
26+
Long: ux.SprintfMagenta(defaults.BinaryName) + ux.SprintfBlue(" - Build a Pantheon website."),
2627
Run: cmdBuild,
2728
}
2829

29-
var helpersCmd = &cobra.Command{
30+
var toolsCmd = &cobra.Command{
3031
Use: loadTools.CmdTools,
3132
Short: ux.SprintfMagenta("scribe") + ux.SprintfBlue(" - Show all built-in template helpers."),
3233
Long: ux.SprintfMagenta("scribe") + ux.SprintfBlue(" - Show all built-in template helpers."),
@@ -55,8 +56,3 @@ For example: #!/usr/bin/env scribe --json gearbox.json run
5556
`),
5657
Run: cmdRun,
5758
}
58-
59-
60-
func init() {
61-
rootCmd.AddCommand(helpersCmd)
62-
}

cmd/runtime/structs.go

Lines changed: 0 additions & 161 deletions
This file was deleted.

cmd/version.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ var versionCmd = &cobra.Command{
2020
Long: ux.SprintfMagenta(defaults.BinaryName) + ux.SprintfBlue(" - Show version of executable."),
2121
Run: func(cmd *cobra.Command, args []string) {
2222
Cmd.State = ProcessArgs(Cmd, cmd, args)
23-
if Cmd.State.IsNotOk() {
24-
return
25-
}
23+
//if Cmd.State.IsNotOk() {
24+
// return
25+
//}
2626

2727
Cmd.State = Version(args...)
2828
},
@@ -33,9 +33,9 @@ var selfUpdateCmd = &cobra.Command{
3333
Long: ux.SprintfMagenta(defaults.BinaryName) + ux.SprintfBlue(" - Check and update the latest version."),
3434
Run: func(cmd *cobra.Command, args []string) {
3535
Cmd.State = ProcessArgs(Cmd, cmd, args)
36-
if Cmd.State.IsNotOk() {
37-
return
38-
}
36+
//if Cmd.State.IsNotOk() {
37+
// return
38+
//}
3939

4040
Cmd.State = VersionUpdate()
4141
},

defaults/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package defaults
22

33
const (
44
BinaryName = "deploywp"
5-
BinaryVersion = "1.0.0"
5+
BinaryVersion = "1.0.1"
66
SourceRepo = "github.com/wplib/deploywp"
77
BinaryRepo = "github.com/wplib/deploywp"
88
)

0 commit comments

Comments
 (0)