adding custom config library, can read/write TOML, started config validation
This commit is contained in:
		
							
								
								
									
										16
									
								
								client/clientcmd/init.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								client/clientcmd/init.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
package clientcmd
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
//AddFiles adds files to the repo
 | 
			
		||||
func InitializeRepo() error {
 | 
			
		||||
	cwd, err := os.Getwd()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println("Initializing repo in dir: ", cwd)
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user