|
|
@ -40,6 +40,9 @@ Filesystem diff: |
|
|
|
-Il | -install-local |
|
|
|
Install package from local tarball |
|
|
|
|
|
|
|
-Rl | -remove-local |
|
|
|
Remove package from local tarball |
|
|
|
|
|
|
|
-ignore-deps-check |
|
|
|
Skip dependancies check |
|
|
|
` |
|
|
@ -62,6 +65,8 @@ func main() { |
|
|
|
createPackageFlagLong bool |
|
|
|
installLocalPackageFlag bool |
|
|
|
installLocalPackageFlagLong bool |
|
|
|
uninstallPackageFlag bool |
|
|
|
uninstallPackageFlagLong bool |
|
|
|
ignoreDepsCheckFlag bool |
|
|
|
|
|
|
|
verboseOutputFlag bool |
|
|
@ -110,6 +115,9 @@ func main() { |
|
|
|
flag.BoolVar(&installLocalPackageFlag, "Il", 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.Parse() |
|
|
@ -182,10 +190,14 @@ func main() { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if uninstallPackageFlag || uninstallPackageFlagLong { |
|
|
|
e = Package.UninstallPackage(flag.Args()) |
|
|
|
if e != nil { |
|
|
|
panic(e) |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
flag.Usage() |
|
|
|
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)
|
|
|
|
} |