|
@ -40,6 +40,9 @@ Filesystem diff: |
|
|
-Il | -install-local |
|
|
-Il | -install-local |
|
|
Install package from local tarball |
|
|
Install package from local tarball |
|
|
|
|
|
|
|
|
|
|
|
-Rl | -remove-local |
|
|
|
|
|
Remove package from local tarball |
|
|
|
|
|
|
|
|
-ignore-deps-check |
|
|
-ignore-deps-check |
|
|
Skip dependancies check |
|
|
Skip dependancies check |
|
|
` |
|
|
` |
|
@ -62,6 +65,8 @@ func main() { |
|
|
createPackageFlagLong bool |
|
|
createPackageFlagLong bool |
|
|
installLocalPackageFlag bool |
|
|
installLocalPackageFlag bool |
|
|
installLocalPackageFlagLong bool |
|
|
installLocalPackageFlagLong bool |
|
|
|
|
|
uninstallPackageFlag bool |
|
|
|
|
|
uninstallPackageFlagLong bool |
|
|
ignoreDepsCheckFlag bool |
|
|
ignoreDepsCheckFlag bool |
|
|
|
|
|
|
|
|
verboseOutputFlag bool |
|
|
verboseOutputFlag bool |
|
@ -110,6 +115,9 @@ func main() { |
|
|
flag.BoolVar(&installLocalPackageFlag, "Il", false, "Install package from local tarball") |
|
|
flag.BoolVar(&installLocalPackageFlag, "Il", false, "Install package from local tarball") |
|
|
flag.BoolVar(&installLocalPackageFlagLong, "install-local", false, "Install package from local tarball") |
|
|
flag.BoolVar(&installLocalPackageFlagLong, "install-local", false, "Install package from local tarball") |
|
|
|
|
|
|
|
|
|
|
|
flag.BoolVar(&uninstallPackageFlag, "Rl", false, "Uninstall local package") |
|
|
|
|
|
flag.BoolVar(&uninstallPackageFlagLong, "remove-local", false, "Uninstall local package") |
|
|
|
|
|
|
|
|
flag.BoolVar(&ignoreDepsCheckFlag, "ignore-deps-check", false, "Ignore dependancies check") |
|
|
flag.BoolVar(&ignoreDepsCheckFlag, "ignore-deps-check", false, "Ignore dependancies check") |
|
|
|
|
|
|
|
|
flag.Parse() |
|
|
flag.Parse() |
|
@ -182,10 +190,14 @@ func main() { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if uninstallPackageFlag || uninstallPackageFlagLong { |
|
|
|
|
|
e = Package.UninstallPackage(flag.Args()) |
|
|
|
|
|
if e != nil { |
|
|
|
|
|
panic(e) |
|
|
|
|
|
} |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
flag.Usage() |
|
|
flag.Usage() |
|
|
fmt.Println(Color.Fatal("Nothing to do")) |
|
|
fmt.Println(Color.Fatal("Nothing to do")) |
|
|
|
|
|
|
|
|
//e := Archive.TarGzip("/tmp/test", "/tmp/test.tar.gz")
|
|
|
|
|
|
//e := Archive.UntarGzip("/tmp/test.tar.gz", "/tmp/test")
|
|
|
|
|
|
//fmt.Println(e)
|
|
|
|
|
|
} |
|
|
} |