Skip to content

Commit

Permalink
Sync bonus round: sync:name, sync:purge, sync:check (#165)
Browse files Browse the repository at this point in the history
* Add sync:name, sync:purge, sync:check WIP

* Additional cleanup of unison file purge.

* Correct lint errors.

* Cannot forget the go formatting

* Fixed undefined reference to an error

* fixed output redirection and logging

* Fix double basepath and start troubleshooting lstat

* Fix stray lstat warning.

* Fix lint errors.
  • Loading branch information
grayside authored and febbraro committed May 18, 2018
1 parent c1abd9e commit 94f67da
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 62 deletions.
2 changes: 1 addition & 1 deletion commands/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (cmd *Project) GetScriptsAsSubcommands(otherSubcommands []cli.Command) []cl
func (cmd *Project) Run(c *cli.Context) error {
cmd.out.Verbose("Loaded project configuration from %s", cmd.Config.Path)
if cmd.Config.Scripts == nil {
cmd.out.Channel.Error.Fatal("There are no scripts discovered in: %s", cmd.Config.File)
cmd.out.Channel.Error.Fatal(fmt.Sprintf("There are no scripts discovered in: %s", cmd.Config.File))
}

key := strings.TrimPrefix(c.Command.Name, "run:")
Expand Down
2 changes: 1 addition & 1 deletion commands/project_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/phase2/rig/util"
)

// ProjectScript wrapps the evaluation of project scripts.
// ProjectScript wraps the evaluation of project scripts.
// It mimics command struct except with unexported values.
type ProjectScript struct {
out *util.RigLogger
Expand Down
Loading

0 comments on commit 94f67da

Please sign in to comment.