working on initing a repo, more work on 'add' command
This commit is contained in:
@@ -2,15 +2,19 @@ package clientcmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
//AddFiles adds files to the repo
|
||||
func InitializeRepo() error {
|
||||
// InitializeRepo creates the repo directory and a new config file
|
||||
func InitializeRepo() {
|
||||
cwd, err := os.Getwd()
|
||||
if err != nil {
|
||||
return err
|
||||
log.Fatal("unable to get current working directory.. permissions issue?")
|
||||
}
|
||||
fmt.Println("Initializing repo in dir: ", cwd)
|
||||
return nil
|
||||
err = os.Mkdir(".gvc", 0644)
|
||||
if err != nil {
|
||||
fmt.Println(".gvc directory already exists, but no config file... continuing")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user