Skip to content

Commit ac43101

Browse files
committed
Changed import paths
1 parent 0b2bb80 commit ac43101

8 files changed

Lines changed: 15 additions & 8 deletions

File tree

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
The MIT License (MIT)
22

3+
Copyright © 2017 Volatile Tech Limited
34
Copyright © 2016 Mark Bates
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This simple command line application will watch your files, trigger a build of y
99
## Installation
1010

1111
```
12-
$ go get github.com/markbates/refresh
12+
$ go get -u github.com/volatiletech/refresh
1313
```
1414

1515
## Getting Started

cmd/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package cmd
33
import (
44
"os"
55

6-
"github.com/markbates/refresh/refresh"
76
"github.com/spf13/cobra"
7+
"github.com/volatiletech/refresh/refresh"
88
)
99

1010
func init() {

cmd/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"log"
66
"os"
77

8-
"github.com/markbates/refresh/refresh"
98
"github.com/spf13/cobra"
9+
"github.com/volatiletech/refresh/refresh"
1010
)
1111

1212
func init() {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/markbates/refresh/cmd"
3+
import "github.com/volatiletech/refresh/cmd"
44

55
func main() {
66
cmd.Execute()

refresh/logger.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"runtime"
99

1010
"github.com/fatih/color"
11-
"github.com/markbates/going/defaults"
1211
homedir "github.com/mitchellh/go-homedir"
1312
)
1413

@@ -23,12 +22,19 @@ func NewLogger(c *Configuration) *Logger {
2322
if runtime.GOOS == "windows" {
2423
color.NoColor = true
2524
}
26-
lname := defaults.String(c.LogName, "refresh")
25+
lname := String(c.LogName, "refresh")
2726
return &Logger{
2827
log: log.New(os.Stdout, fmt.Sprintf("%s: ", lname), log.LstdFlags),
2928
}
3029
}
3130

31+
func String(s1, s2 string) string {
32+
if s1 == "" {
33+
return s2
34+
}
35+
return s1
36+
}
37+
3238
func (l *Logger) Success(msg interface{}, args ...interface{}) {
3339
l.log.Print(color.GreenString(fmt.Sprintf(lformat, msg), args...))
3440
}

refresh/watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (w *Watcher) Start() {
3434
err := filepath.Walk(w.AppRoot, func(path string, info os.FileInfo, err error) error {
3535
if info == nil {
3636
w.cancelFunc()
37-
return errors.New("nil directory!")
37+
return errors.New("nil directory")
3838
}
3939
if info.IsDir() {
4040
if len(path) > 1 && strings.HasPrefix(filepath.Base(path), ".") || w.isIgnoredFolder(path) {

refresh/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io/ioutil"
66
"net/http"
77

8-
"github.com/markbates/refresh/refresh"
8+
"github.com/volatiletech/refresh/refresh"
99
)
1010

1111
var id = refresh.ID()

0 commit comments

Comments
 (0)