mirror of
https://github.com/mudler/luet.git
synced 2025-07-19 09:49:28 +00:00
Prepare for 0.1 tag
This commit is contained in:
parent
6e662c75ce
commit
f107f47242
@ -29,13 +29,13 @@ import (
|
||||
var cfgFile string
|
||||
var Verbose bool
|
||||
|
||||
const LuetCLIVersion = "0.1-dev"
|
||||
const LuetCLIVersion = "0.1"
|
||||
|
||||
// RootCmd represents the base command when called without any subcommands
|
||||
var RootCmd = &cobra.Command{
|
||||
Use: "luet",
|
||||
Short: "Package manager for the XXth century!",
|
||||
Long: `Package manager which supports Gentoo and Entropy packages`,
|
||||
Long: `Package manager which uses containers to build packages`,
|
||||
Version: LuetCLIVersion,
|
||||
}
|
||||
|
||||
|
@ -65,8 +65,6 @@ func (*SimpleImg) DownloadImage(opts compiler.CompilerBackendOptions) error {
|
||||
|
||||
name := opts.ImageName
|
||||
buildarg := []string{"pull", name}
|
||||
Spinner(22)
|
||||
defer SpinnerStop()
|
||||
|
||||
Debug("Downloading image "+name+" - running img with: ", buildarg)
|
||||
cmd := exec.Command("img", buildarg...)
|
||||
@ -74,7 +72,6 @@ func (*SimpleImg) DownloadImage(opts compiler.CompilerBackendOptions) error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Failed building image: "+string(out))
|
||||
}
|
||||
Info(string(out))
|
||||
return nil
|
||||
}
|
||||
func (*SimpleImg) CopyImage(src, dst string) error {
|
||||
@ -87,7 +84,6 @@ func (*SimpleImg) CopyImage(src, dst string) error {
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Failed tagging image: "+string(out))
|
||||
}
|
||||
Info(string(out))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -108,14 +104,11 @@ func (*SimpleImg) ExportImage(opts compiler.CompilerBackendOptions) error {
|
||||
name := opts.ImageName
|
||||
path := opts.Destination
|
||||
buildarg := []string{"save", name, "-o", path}
|
||||
Spinner(22)
|
||||
Debug("Saving image "+name+" - running img with: ", buildarg)
|
||||
out, err := exec.Command("img", buildarg...).CombinedOutput()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Failed building image: "+string(out))
|
||||
}
|
||||
SpinnerStop()
|
||||
Info(out)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user