Skip to content

Commit

Permalink
Cleanup deps run output
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Aug 22, 2019
1 parent a1fcca4 commit c3ebf54
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/component/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import (
)

func (r *Runner) Collect(inputPath string) (*schema.Dependencies, error) {
output.Event("Collecting with %s", r.Given)
if output.Verbosity > 0 {
output.Event("Collecting with %s", r.Given)
} else {
output.Event("Collecting with %s", r.GetName())
}
output.Debug("Input path: %s", inputPath)

outputPath, err := r.run(r.getCommand(r.Config.Collect, "collect"), inputPath)
Expand Down
8 changes: 8 additions & 0 deletions internal/runner/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ package runner
import (
"fmt"

"github.com/dropseed/deps/internal/git"
"github.com/dropseed/deps/internal/output"

"github.com/manifoldco/promptui"
)

// Local runs a full interactive update process
func Local() error {
if git.IsDirty() {
output.Warning("You have uncommitted changes! We recommend you have a clean git status before running deps locally, so that you can easily track what changed.\n")
}

cfg, err := getConfig()
if err != nil {
return err
Expand Down Expand Up @@ -56,6 +63,7 @@ func (updates Updates) prompt() error {
Items: items,
}

println()
i, _, err := prompt.Run()
if err != nil {
return err
Expand Down

0 comments on commit c3ebf54

Please sign in to comment.