mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-11 23:50:04 +01:00
chore: rename package to be able to go install
This commit is contained in:
parent
538ff9c6f6
commit
507039ecc0
31 changed files with 104 additions and 99 deletions
|
|
@ -19,11 +19,11 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
cmdbuild "github.com/storyicon/powerproto/cmd/powerproto/subcommands/build"
|
cmdbuild "github.com/TECHNOFAB11/powerproto/cmd/powerproto/subcommands/build"
|
||||||
cmdenv "github.com/storyicon/powerproto/cmd/powerproto/subcommands/env"
|
cmdenv "github.com/TECHNOFAB11/powerproto/cmd/powerproto/subcommands/env"
|
||||||
cmdinit "github.com/storyicon/powerproto/cmd/powerproto/subcommands/init"
|
cmdinit "github.com/TECHNOFAB11/powerproto/cmd/powerproto/subcommands/init"
|
||||||
cmdtidy "github.com/storyicon/powerproto/cmd/powerproto/subcommands/tidy"
|
cmdtidy "github.com/TECHNOFAB11/powerproto/cmd/powerproto/subcommands/tidy"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version is set via build flag -ldflags -X main.Version
|
// Version is set via build flag -ldflags -X main.Version
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,10 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/bootstraps"
|
"github.com/TECHNOFAB11/powerproto/pkg/bootstraps"
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
const description = `
|
const description = `
|
||||||
|
|
|
||||||
4
cmd/powerproto/subcommands/env/command.go
vendored
4
cmd/powerproto/subcommands/env/command.go
vendored
|
|
@ -20,8 +20,8 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CommandEnv is used to print environment variables related to program operation
|
// CommandEnv is used to print environment variables related to program operation
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ import (
|
||||||
"github.com/AlecAivazis/survey/v2"
|
"github.com/AlecAivazis/survey/v2"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UserPreference defines the model of user preference
|
// UserPreference defines the model of user preference
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,13 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/bootstraps"
|
"github.com/TECHNOFAB11/powerproto/pkg/bootstraps"
|
||||||
"github.com/storyicon/powerproto/pkg/component/pluginmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/pluginmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
"github.com/storyicon/powerproto/pkg/util/progressbar"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/progressbar"
|
||||||
)
|
)
|
||||||
|
|
||||||
func tidy(ctx context.Context,
|
func tidy(ctx context.Context,
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/storyicon/powerproto
|
module github.com/TECHNOFAB11/powerproto
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,16 +20,16 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/component/actionmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/actionmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/component/compilermanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/compilermanager"
|
||||||
"github.com/storyicon/powerproto/pkg/component/configmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/configmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/component/pluginmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/pluginmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/concurrent"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/concurrent"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
"github.com/storyicon/powerproto/pkg/util/progressbar"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/progressbar"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StepLookUpConfigs is used to lookup config files according to target proto files
|
// StepLookUpConfigs is used to lookup config files according to target proto files
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,13 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/component/configmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/configmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/component/pluginmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/pluginmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
"github.com/storyicon/powerproto/pkg/util/progressbar"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/progressbar"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StepTidyConfig is used to tidy configs by proto file targets
|
// StepTidyConfig is used to tidy configs by proto file targets
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ package actions
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CommonOptions is common options of action
|
// CommonOptions is common options of action
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,14 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ActionCopy is used to copy directory or file from src to dest
|
// ActionCopy is used to copy directory or file from src to dest
|
||||||
// Its args prototype is:
|
// Its args prototype is:
|
||||||
|
//
|
||||||
// args: (src string, dest string)
|
// args: (src string, dest string)
|
||||||
func ActionCopy(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
func ActionCopy(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
||||||
if len(args) != 2 || util.ContainsEmpty(args...) {
|
if len(args) != 2 || util.ContainsEmpty(args...) {
|
||||||
|
|
|
||||||
|
|
@ -21,13 +21,14 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ActionMove is used to move directory or file from src to dest
|
// ActionMove is used to move directory or file from src to dest
|
||||||
// Its args prototype is:
|
// Its args prototype is:
|
||||||
|
//
|
||||||
// args: (src string, dest string)
|
// args: (src string, dest string)
|
||||||
func ActionMove(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
func ActionMove(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
||||||
if len(args) != 2 || util.ContainsEmpty(args...) {
|
if len(args) != 2 || util.ContainsEmpty(args...) {
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,13 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ActionRemove is used to delete directories or files
|
// ActionRemove is used to delete directories or files
|
||||||
// Its args prototype is:
|
// Its args prototype is:
|
||||||
|
//
|
||||||
// args: (path ...string)
|
// args: (path ...string)
|
||||||
func ActionRemove(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
func ActionRemove(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
|
|
|
||||||
|
|
@ -23,14 +23,16 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ActionReplace is used to replace text in bulk
|
// ActionReplace is used to replace text in bulk
|
||||||
// Its args prototype is:
|
// Its args prototype is:
|
||||||
|
//
|
||||||
// args: (pattern string, from string, to string)
|
// args: (pattern string, from string, to string)
|
||||||
|
//
|
||||||
// pattern is used to match files
|
// pattern is used to match files
|
||||||
func ActionReplace(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
func ActionReplace(ctx context.Context, log logger.Logger, args []string, options *CommonOptions) error {
|
||||||
if len(args) != 3 {
|
if len(args) != 3 {
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ package actionmanager
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrPostShell defines the post shell command error
|
// ErrPostShell defines the post shell command error
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/component/actionmanager/actions"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/actionmanager/actions"
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ActionManager is used to manage actions
|
// ActionManager is used to manage actions
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,12 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/component/pluginmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/pluginmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Compiler is used to compile proto file
|
// Compiler is used to compile proto file
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
package compilermanager
|
package compilermanager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrCompile defines the compile error
|
// ErrCompile defines the compile error
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/component/configmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/configmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/component/pluginmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/pluginmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CompilerManager is to manage compiler
|
// CompilerManager is to manage compiler
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ import (
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/configs"
|
"github.com/TECHNOFAB11/powerproto/pkg/configs"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfigManager is used to manage config
|
// ConfigManager is used to manage config
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ package pluginmanager
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrGoInstall defines the go install error
|
// ErrGoInstall defines the go install error
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrGitList defines the git list error
|
// ErrGitList defines the git list error
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PluginManager is used to manage plugins
|
// PluginManager is used to manage plugins
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import (
|
||||||
|
|
||||||
"golang.org/x/mod/module"
|
"golang.org/x/mod/module"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PathForInclude is used to get the local directory of include files
|
// PathForInclude is used to get the local directory of include files
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@ import (
|
||||||
"github.com/hashicorp/go-multierror"
|
"github.com/hashicorp/go-multierror"
|
||||||
jsoniter "github.com/json-iterator/go"
|
jsoniter "github.com/json-iterator/go"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// IsPluginInstalled is used to check whether a plugin is installed
|
// IsPluginInstalled is used to check whether a plugin is installed
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ import (
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/component/pluginmanager"
|
"github.com/TECHNOFAB11/powerproto/pkg/component/pluginmanager"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("PluginManager", func() {
|
var _ = Describe("PluginManager", func() {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import (
|
||||||
"github.com/mholt/archiver"
|
"github.com/mholt/archiver"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ProtocRelease defines the release of protoc
|
// ProtocRelease defines the release of protoc
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ import (
|
||||||
|
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config defines the config model
|
// Config defines the config model
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import (
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// defines a set of const value
|
// defines a set of const value
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util"
|
"github.com/TECHNOFAB11/powerproto/pkg/util"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Execute is used to execute commands, return stdout and execute errors
|
// Execute is used to execute commands, return stdout and execute errors
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import (
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/util/command"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/command"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("Command", func() {
|
var _ = Describe("Command", func() {
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"github.com/vbauerster/mpb/v7"
|
"github.com/vbauerster/mpb/v7"
|
||||||
"github.com/vbauerster/mpb/v7/decor"
|
"github.com/vbauerster/mpb/v7/decor"
|
||||||
|
|
||||||
"github.com/storyicon/powerproto/pkg/consts"
|
"github.com/TECHNOFAB11/powerproto/pkg/consts"
|
||||||
"github.com/storyicon/powerproto/pkg/util/logger"
|
"github.com/TECHNOFAB11/powerproto/pkg/util/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ProgressBar implements a customizable progress bar
|
// ProgressBar implements a customizable progress bar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue