moving manager over to the engine for now
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
|
||||
clientconfig "github.com/deranjer/gvc/client/clientconfig"
|
||||
"github.com/deranjer/gvc/common"
|
||||
"github.com/deranjer/gvc/common/manager"
|
||||
"github.com/deranjer/gvc/common/engine"
|
||||
)
|
||||
|
||||
//AddFiles adds files to the repo, inputType specifies file, folder, wildcard or all
|
||||
func AddFiles(input string, inputType string, ignore common.FileTypes, m *manager.Manager) error {
|
||||
func AddFiles(input string, inputType string, ignore common.FileTypes, m *engine.Manager) error {
|
||||
err := validateFileType(input, inputType) // Making sure that if the file flag was used a folder was not supplied and vice versa
|
||||
if err != nil {
|
||||
return err
|
||||
|
@@ -2,12 +2,12 @@ package clientcmd
|
||||
|
||||
import (
|
||||
clientconfig "github.com/deranjer/gvc/client/clientconfig"
|
||||
"github.com/deranjer/gvc/common/manager"
|
||||
"github.com/deranjer/gvc/common/engine"
|
||||
)
|
||||
|
||||
// Commit commits the tracked files and changes to the repo
|
||||
func Commit(conf *clientconfig.Gvcconfig, commitMessage string, m *manager.Manager) error {
|
||||
m.BeginCommit(conf.CurrentBranch)
|
||||
func Commit(conf *clientconfig.Gvcconfig, commitMessage string, m *engine.Manager) error {
|
||||
m.BeginCommit(conf.CurrentBranch, commitMessage)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user