mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-26 13:47:40 +00:00
Re-enable task run command. #96
This commit is contained in:
+1
-2
@@ -71,8 +71,7 @@ package environment to new version.`,
|
|||||||
makeCmdRepo(),
|
makeCmdRepo(),
|
||||||
makeCmdServe(),
|
makeCmdServe(),
|
||||||
makeCmdSnapshot(),
|
makeCmdSnapshot(),
|
||||||
// Disabled on no docs
|
makeCmdTask(),
|
||||||
//makeCmdTask(),
|
|
||||||
makeCmdPublish(),
|
makeCmdPublish(),
|
||||||
makeCmdVersion(),
|
makeCmdVersion(),
|
||||||
makeCmdPackage(),
|
makeCmdPackage(),
|
||||||
|
|||||||
@@ -80,6 +80,10 @@ func aptlyTaskRun(cmd *commander.Command, args []string) error {
|
|||||||
|
|
||||||
for i, command := range cmdList {
|
for i, command := range cmdList {
|
||||||
if !commandErrored {
|
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("@g%d) [Running]: %s@!", (i + 1), strings.Join(command, " "))
|
||||||
context.Progress().ColoredPrintf("\n@yBegin command output: ----------------------------@!")
|
context.Progress().ColoredPrintf("\n@yBegin command output: ----------------------------@!")
|
||||||
context.Progress().Flush()
|
context.Progress().Flush()
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ Commands:
|
|||||||
repo manage local package repositories
|
repo manage local package repositories
|
||||||
serve HTTP serve published repositories
|
serve HTTP serve published repositories
|
||||||
snapshot manage snapshots of repositories
|
snapshot manage snapshots of repositories
|
||||||
|
task manage aptly tasks
|
||||||
version display version
|
version display version
|
||||||
|
|
||||||
Use "aptly help <command>" for more information about a command.
|
Use "aptly help <command>" for more information about a command.
|
||||||
|
|||||||
@@ -21,6 +21,6 @@ End command output: ------------------------------
|
|||||||
4) [Running]: version
|
4) [Running]: version
|
||||||
|
|
||||||
Begin command output: ----------------------------
|
Begin command output: ----------------------------
|
||||||
aptly version: 0.8~dev
|
aptly version: 0.9~dev
|
||||||
|
|
||||||
End command output: ------------------------------
|
End command output: ------------------------------
|
||||||
|
|||||||
@@ -2,5 +2,4 @@
|
|||||||
Test aptly task run
|
Test aptly task run
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# disabled for now
|
from .run import *
|
||||||
#from .run import *
|
|
||||||
|
|||||||
Reference in New Issue
Block a user