| 129 | } |
| 130 | |
| 131 | func makeCmdTaskRun() *commander.Command { |
| 132 | cmd := &commander.Command{ |
| 133 | Run: aptlyTaskRun, |
| 134 | UsageLine: "run (-filename=<filename> | <commands>...)", |
| 135 | Short: "run aptly tasks", |
| 136 | Long: ` |
| 137 | Command helps organise multiple aptly commands in one single aptly task, running as single thread. |
| 138 | |
| 139 | Example: |
| 140 | |
| 141 | $ aptly task run |
| 142 | > repo create local |
| 143 | > repo add local pkg1 |
| 144 | > publish repo local |
| 145 | > serve |
| 146 | > |
| 147 | |
| 148 | `, |
| 149 | } |
| 150 | |
| 151 | cmd.Flag.String("filename", "", "specifies the filename that contains the commands to run") |
| 152 | return cmd |
| 153 | } |