Skip to content

Commit

Permalink
Merge pull request #6 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 0.0.1 β4
  • Loading branch information
andyone authored Dec 2, 2017
2 parents 5f4a3e6 + 18989f9 commit 11b028f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
const (
APP = "bibop"
VER = "0.0.1"
RELEASE = "β3"
RELEASE = "β4"
DESC = "Utility for testing command-line tools"
)

Expand Down
10 changes: 4 additions & 6 deletions cli/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func (os *outputStore) String() string {
func runCommand(e *Executor, c *recipe.Command) error {
var (
err error
t *fmtc.T
cmd *exec.Cmd
stdinWriter io.WriteCloser
output *outputStore
Expand All @@ -152,8 +151,7 @@ func runCommand(e *Executor, c *recipe.Command) error {

for index, action := range c.Actions {
if !e.quiet {
t = fmtc.NewT()
t.Printf(
fmtc.TPrintf(
" {s-}└{!} {s~-}● {!}%s {s}%s{!} {s-}[%s]{!}",
action.Name, formatArguments(action.Arguments),
formatDuration(time.Since(e.start)),
Expand All @@ -168,12 +166,12 @@ func runCommand(e *Executor, c *recipe.Command) error {

if !e.quiet {
if err != nil {
t.Printf(" {s-}└{!} {r}✖ {!}%s {r}%s{!}\n\n", action.Name, formatArguments(action.Arguments))
fmtc.TPrintf(" {s-}└{!} {r}✖ {!}%s {r}%s{!}\n\n", action.Name, formatArguments(action.Arguments))
} else {
if index+1 == totalActions {
t.Printf(" {s-}└{!} {g}✔ {!}%s {s}%s{!}\n\n", action.Name, formatArguments(action.Arguments))
fmtc.TPrintf(" {s-}└{!} {g}✔ {!}%s {s}%s{!}\n\n", action.Name, formatArguments(action.Arguments))
} else {
t.Printf(" {s-}├{!} {g}✔ {!}%s {s}%s{!}\n", action.Name, formatArguments(action.Arguments))
fmtc.TPrintf(" {s-}├{!} {g}✔ {!}%s {s}%s{!}\n", action.Name, formatArguments(action.Arguments))
}
}
}
Expand Down

0 comments on commit 11b028f

Please sign in to comment.