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

Commit ff80afe

Browse files
committed
Major module refactor
1 parent df1f9d8 commit ff80afe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+182
-2231
lines changed

.idea/workspace.xml

+54-92
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ App for deploying a WordPress site to Pantheon
33

44

55
## Basic premise
6-
This package is a fork from JsonToConfig initially and provides a simple framework of "helpers", with all methods visible in both GoLang native and GoLang templates.
6+
This package is a fork from Scribe initially and provides a simple framework of "helpers", with all methods visible in both GoLang native and GoLang templates.
77

88
## Structure
99
helper packages are defined within the jtc/helpers directory. All methods and functions are pulled in automatically on build using `pkgreflect`.

_save/jsonTemplateBACKUP/helpers/deploywp/struct.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package deploywp
22

3-
import "github.com/wplib/deploywp/ux"
3+
import "github.com/newclarity/scribeHelpers/ux"
44

55

66
type DeployWpGetter interface {

_save/jsonTemplateBACKUP/helpers/helperCopy/copy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperCopy
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
)
77

88

_save/jsonTemplateBACKUP/helpers/helperCopy/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"github.com/wplib/deploywp/jsonTemplate/helpers/helperTypes"
77
"github.com/wplib/deploywp/only"
8-
"github.com/wplib/deploywp/ux"
8+
"github.com/newclarity/scribeHelpers/ux"
99
"os/exec"
1010
"strings"
1111
"syscall"

_save/jsonTemplateBACKUP/helpers/helperCopy/helpers_rsync.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperCopy
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperPath"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
"github.com/zloylos/grsync"
88
"time"
99
)

_save/jsonTemplateBACKUP/helpers/helperCopy/struct.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperCopy
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperPath"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
)
88

99

_save/jsonTemplateBACKUP/helpers/helperExec/funcs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperExec
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"os/exec"
77
"syscall"
88
)

_save/jsonTemplateBACKUP/helpers/helperExec/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperExec
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperTypes"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
)
88

99

_save/jsonTemplateBACKUP/helpers/helperExec/helpers_bash.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperExec
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperTypes"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
"io/ioutil"
88
"log"
99
"os"

_save/jsonTemplateBACKUP/helpers/helperExec/helpers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperExec
22

33
import (
44
"github.com/davecgh/go-spew/spew"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"testing"
77
)
88

_save/jsonTemplateBACKUP/helpers/helperExec/struct.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperExec
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperTypes"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
)
88

99
type TypeExecCommandGetter interface {

_save/jsonTemplateBACKUP/helpers/helperGit/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/wplib/deploywp/jsonTemplate/helpers/helperExec"
66
"github.com/wplib/deploywp/jsonTemplate/helpers/helperPath"
77
"github.com/wplib/deploywp/only"
8-
"github.com/wplib/deploywp/ux"
8+
"github.com/newclarity/scribeHelpers/ux"
99
)
1010

1111
type HelperGit TypeGit

_save/jsonTemplateBACKUP/helpers/helperGit/helpers_branch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperGit
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperTypes"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
)
88

99

_save/jsonTemplateBACKUP/helpers/helperGit/helpers_commit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperGit
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
)
77

88
type Commit struct {

_save/jsonTemplateBACKUP/helpers/helperGit/helpers_exec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperGit
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
)
77

88

_save/jsonTemplateBACKUP/helpers/helperGit/helpers_files.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperGit
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"strings"
77
)
88

_save/jsonTemplateBACKUP/helpers/helperGit/helpers_pull.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperGit
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"gopkg.in/src-d/go-git.v4"
77
)
88

_save/jsonTemplateBACKUP/helpers/helperGit/helpers_repository.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperGit
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperPath"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
"gopkg.in/src-d/go-git.v4"
88
"gopkg.in/src-d/go-git.v4/plumbing/object"
99
)

_save/jsonTemplateBACKUP/helpers/helperGit/struct.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/wplib/deploywp/jsonTemplate/helpers/helperExec"
66
"github.com/wplib/deploywp/jsonTemplate/helpers/helperPath"
77
"github.com/wplib/deploywp/only"
8-
"github.com/wplib/deploywp/ux"
8+
"github.com/newclarity/scribeHelpers/ux"
99
"gopkg.in/src-d/go-git.v4"
1010
"gopkg.in/src-d/go-git.v4/plumbing"
1111
"gopkg.in/src-d/go-git.v4/plumbing/object"

_save/jsonTemplateBACKUP/helpers/helperPath/dir.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperPath
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"os"
77
)
88

_save/jsonTemplateBACKUP/helpers/helperPath/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperPath
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperSystem"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
"io/ioutil"
88
"strings"
99
)

_save/jsonTemplateBACKUP/helpers/helperPath/remove.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperPath
33
import (
44
"github.com/wplib/deploywp/jsonTemplate/helpers/helperSystem"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
"os"
88
)
99

_save/jsonTemplateBACKUP/helpers/helperPath/stat.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helperPath
33
import (
44
"fmt"
55
"github.com/wplib/deploywp/only"
6-
"github.com/wplib/deploywp/ux"
6+
"github.com/newclarity/scribeHelpers/ux"
77
"os"
88
"path/filepath"
99
)

_save/jsonTemplateBACKUP/helpers/helperPath/struct.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperPath
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"os"
77
"path/filepath"
88
"strings"

_save/jsonTemplateBACKUP/helpers/helperTypes/reflects.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package helperTypes
22

33
import (
44
"github.com/wplib/deploywp/only"
5-
"github.com/wplib/deploywp/ux"
5+
"github.com/newclarity/scribeHelpers/ux"
66
"reflect"
77
"strings"
88
)

_save/jsonTemplateBACKUP/helpers/helperUx/ux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package helperUx
22

33
import (
4-
"github.com/wplib/deploywp/ux"
4+
"github.com/newclarity/scribeHelpers/ux"
55
)
66

77

_save/jsonTemplateBACKUP/helpers/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/wplib/deploywp/jsonTemplate/helpers/helperTypes"
1414
"github.com/wplib/deploywp/jsonTemplate/helpers/helperUx"
1515
"github.com/wplib/deploywp/only"
16-
"github.com/wplib/deploywp/ux"
16+
"github.com/newclarity/scribeHelpers/ux"
1717
"path/filepath"
1818
"reflect"
1919
"runtime"

_save/jsonTemplateBACKUP/template.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/wplib/deploywp/jsonTemplate/helpers"
77
"github.com/wplib/deploywp/jsonTemplate/helpers/helperSystem"
88
"github.com/wplib/deploywp/only"
9-
"github.com/wplib/deploywp/ux"
9+
"github.com/newclarity/scribeHelpers/ux"
1010
"os"
1111
"os/exec"
1212
"path"

cmd/build.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
"github.com/newclarity/JsonToConfig/jtc"
5+
"github.com/newclarity/scribeHelpers/scribeLoader"
66
"github.com/wplib/deploywp/deploywp"
7-
"github.com/newclarity/JsonToConfig/ux"
7+
"github.com/newclarity/scribeHelpers/ux"
88
)
99

1010

@@ -14,7 +14,7 @@ func init() {
1414

1515

1616
var buildCmd = &cobra.Command{
17-
Use: jtc.CmdBuild,
17+
Use: scribeLoader.CmdBuild,
1818
Short: ux.SprintfBlue("Build a Pantheon website."),
1919
Long: ux.SprintfBlue("Build a Pantheon website."),
2020
Run: Build,

cmd/funcs.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
"github.com/newclarity/JsonToConfig/jtc"
5+
"github.com/newclarity/scribeHelpers/scribeLoader"
66
"path/filepath"
77
)
88

99

10-
func ProcessArgs(cmd *cobra.Command, args []string) *jtc.ArgTemplate {
11-
var tmpl *jtc.ArgTemplate
12-
// tmpl := jtc.NewArgTemplate()
10+
func ProcessArgs(cmd *cobra.Command, args []string) *scribeLoader.ArgTemplate {
11+
var tmpl *scribeLoader.ArgTemplate
12+
// tmpl := scribeLoader.NewArgTemplate()
1313

1414
for range OnlyOnce {
1515
tmpl = Cmd

cmd/helpers.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
"github.com/newclarity/JsonToConfig/jtc"
6-
"github.com/newclarity/JsonToConfig/ux"
5+
"github.com/newclarity/scribeHelpers/scribeLoader"
6+
"github.com/newclarity/scribeHelpers/ux"
77
)
88

99

@@ -13,7 +13,7 @@ func init() {
1313

1414

1515
var helpersCmd = &cobra.Command{
16-
Use: jtc.CmdHelpers,
16+
Use: scribeLoader.CmdHelpers,
1717
Short: ux.SprintfBlue("Show all built-in template helpers."),
1818
Long: ux.SprintfBlue("Show all built-in template helpers."),
1919
Run: Helpers,

cmd/load.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
"github.com/newclarity/JsonToConfig/jtc"
6-
"github.com/newclarity/JsonToConfig/ux"
5+
"github.com/newclarity/scribeHelpers/scribeLoader"
6+
"github.com/newclarity/scribeHelpers/ux"
77
)
88

99

@@ -14,7 +14,7 @@ func init() {
1414

1515
// releaseCmd represents the release command
1616
var loadCmd = &cobra.Command{
17-
Use: jtc.CmdLoad,
17+
Use: scribeLoader.CmdLoad,
1818
Short: ux.SprintfBlue("Load and execute a template file."),
1919
Long: ux.SprintfBlue("Load and execute a template file."),
2020
Run: LoadTemplate,

0 commit comments

Comments
 (0)