Skip to content

Commit

Permalink
Minor improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnutix committed Nov 11, 2023
1 parent 4a4be14 commit 5f5c594
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"fmt"
"io"
"math"
"strings"
"time"

Expand Down Expand Up @@ -31,9 +32,14 @@ var watchCmd = &cobra.Command{
return ""
}

// Try to display the first or last 20 items, as long as displaying them doesn't exceed 180 characters
// Try to display the first or last 20 items, as long as displaying them doesn't exceed 180 characters...
// ... except in verbose mode, where we go a bit crazier.
displayItems := 20
lineLength := 180
if verbose {
displayItems = 250
lineLength = math.MaxInt32
}
partial := nbItems > displayItems
var nItems []string
for displayItems > 0 {
Expand Down
1 change: 1 addition & 0 deletions provisioner/internal/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func RunContainer(
),
[]string{
fmt.Sprintf("ALFRED_TASK=%s", task.Name),
fmt.Sprintf("ALFRED_TASK_FQN=%s", task.FQN()),
"ALFRED_SHARED=/alfred/shared",
"ALFRED_OUTPUT=/alfred/output",
}...,
Expand Down

0 comments on commit 5f5c594

Please sign in to comment.