Re-enable task run command. #96

This commit is contained in:
Andrey Smirnov
2014-10-14 00:45:46 +04:00
parent d6c3389d7c
commit 50c8e35a90
5 changed files with 8 additions and 5 deletions
+1 -2
View File
@@ -71,8 +71,7 @@ package environment to new version.`,
makeCmdRepo(),
makeCmdServe(),
makeCmdSnapshot(),
// Disabled on no docs
//makeCmdTask(),
makeCmdTask(),
makeCmdPublish(),
makeCmdVersion(),
makeCmdPackage(),
+4
View File
@@ -80,6 +80,10 @@ func aptlyTaskRun(cmd *commander.Command, args []string) error {
for i, command := range cmdList {
if !commandErrored {
err := context.ReOpenDatabase()
if err != nil {
return fmt.Errorf("failed to reopen DB: %s", err)
}
context.Progress().ColoredPrintf("@g%d) [Running]: %s@!", (i + 1), strings.Join(command, " "))
context.Progress().ColoredPrintf("\n@yBegin command output: ----------------------------@!")
context.Progress().Flush()