chore(promises): make a Status function part of the Promise interface
This commit is contained in:
parent
4d3e266b07
commit
eb9d5f861a
7 changed files with 27 additions and 15 deletions
|
@ -58,7 +58,7 @@ func packages_install(names []string) (gonf.Status, []string) {
|
|||
cmd := gonf.CommandWithEnv([]string{"DEBIAN_FRONTEND=noninteractive", "LC_ALL=C"}, "apt-get", args...)
|
||||
cmd.Resolve()
|
||||
packages_list()
|
||||
return cmd.Status, names
|
||||
return cmd.Status(), names
|
||||
}
|
||||
|
||||
func packages_list() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue