Prepare for 0.1 tag

This commit is contained in:
Ettore Di Giacinto 2019-11-17 19:45:20 +01:00
parent 6e662c75ce
commit f107f47242
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C
2 changed files with 2 additions and 9 deletions

View File

@ -29,13 +29,13 @@ import (
var cfgFile string var cfgFile string
var Verbose bool var Verbose bool
const LuetCLIVersion = "0.1-dev" const LuetCLIVersion = "0.1"
// RootCmd represents the base command when called without any subcommands // RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{ var RootCmd = &cobra.Command{
Use: "luet", Use: "luet",
Short: "Package manager for the XXth century!", 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, Version: LuetCLIVersion,
} }

View File

@ -65,8 +65,6 @@ func (*SimpleImg) DownloadImage(opts compiler.CompilerBackendOptions) error {
name := opts.ImageName name := opts.ImageName
buildarg := []string{"pull", name} buildarg := []string{"pull", name}
Spinner(22)
defer SpinnerStop()
Debug("Downloading image "+name+" - running img with: ", buildarg) Debug("Downloading image "+name+" - running img with: ", buildarg)
cmd := exec.Command("img", buildarg...) cmd := exec.Command("img", buildarg...)
@ -74,7 +72,6 @@ func (*SimpleImg) DownloadImage(opts compiler.CompilerBackendOptions) error {
if err != nil { if err != nil {
return errors.Wrap(err, "Failed building image: "+string(out)) return errors.Wrap(err, "Failed building image: "+string(out))
} }
Info(string(out))
return nil return nil
} }
func (*SimpleImg) CopyImage(src, dst string) error { func (*SimpleImg) CopyImage(src, dst string) error {
@ -87,7 +84,6 @@ func (*SimpleImg) CopyImage(src, dst string) error {
if err != nil { if err != nil {
return errors.Wrap(err, "Failed tagging image: "+string(out)) return errors.Wrap(err, "Failed tagging image: "+string(out))
} }
Info(string(out))
return nil return nil
} }
@ -108,14 +104,11 @@ func (*SimpleImg) ExportImage(opts compiler.CompilerBackendOptions) error {
name := opts.ImageName name := opts.ImageName
path := opts.Destination path := opts.Destination
buildarg := []string{"save", name, "-o", path} buildarg := []string{"save", name, "-o", path}
Spinner(22)
Debug("Saving image "+name+" - running img with: ", buildarg) Debug("Saving image "+name+" - running img with: ", buildarg)
out, err := exec.Command("img", buildarg...).CombinedOutput() out, err := exec.Command("img", buildarg...).CombinedOutput()
if err != nil { if err != nil {
return errors.Wrap(err, "Failed building image: "+string(out)) return errors.Wrap(err, "Failed building image: "+string(out))
} }
SpinnerStop()
Info(out)
return nil return nil
} }