Updating output
This commit is contained in:
parent
6fad7caba6
commit
cb21b57cee
@ -31,7 +31,7 @@ type config struct {
|
|||||||
func (this *config) install(srcDir, dstDir, taskName string, flags int) error {
|
func (this *config) install(srcDir, dstDir, taskName string, flags int) error {
|
||||||
task, ok := this.Tasks[taskName]
|
task, ok := this.Tasks[taskName]
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Profile not found: '%s'", taskName)
|
return fmt.Errorf("Task not found: '%s'", taskName)
|
||||||
}
|
}
|
||||||
|
|
||||||
return task.install(srcDir, dstDir, this, flags)
|
return task.install(srcDir, dstDir, this, flags)
|
||||||
|
4
main.go
4
main.go
@ -56,7 +56,7 @@ func parse(filename string) (*config, error) {
|
|||||||
|
|
||||||
func fatalUsage() {
|
func fatalUsage() {
|
||||||
_, executable := path.Split(os.Args[0])
|
_, executable := path.Split(os.Args[0])
|
||||||
fmt.Printf("Usage: %s [options] config_file [target_path]\n", executable)
|
fmt.Printf("Usage: %s [options] config_file [source_dir]\n", executable)
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ func main() {
|
|||||||
|
|
||||||
taskName := flag.String("task", "default", "name of task to execute")
|
taskName := flag.String("task", "default", "name of task to execute")
|
||||||
action := flag.String("action", "install", "'install' or 'uninstall' symlinks")
|
action := flag.String("action", "install", "'install' or 'uninstall' symlinks")
|
||||||
dstDir := flag.String("target", currUsr.HomeDir, "target directory for symlinks")
|
dstDir := flag.String("dest", currUsr.HomeDir, "target directory for symlinks")
|
||||||
force := flag.Bool("force", true, "create parent directories to target")
|
force := flag.Bool("force", true, "create parent directories to target")
|
||||||
clobber := flag.Bool("clobber", false, "delete files and directories at target")
|
clobber := flag.Bool("clobber", false, "delete files and directories at target")
|
||||||
verbose := flag.Bool("verbose", false, "verbose output")
|
verbose := flag.Bool("verbose", false, "verbose output")
|
||||||
|
Loading…
Reference in New Issue
Block a user