Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit d5bcd4d

Browse files
committed
Fix snaptel environment variable.
1 parent 8c86419 commit d5bcd4d

17 files changed

Lines changed: 25 additions & 25 deletions

File tree

cmd/snaptel/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"strings"
2525
"text/tabwriter"
2626

27-
"github.com/codegangsta/cli"
27+
"github.com/urfave/cli"
2828
)
2929

3030
var (

cmd/snaptel/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"strconv"
2929
"text/tabwriter"
3030

31-
"github.com/codegangsta/cli"
3231
"github.com/intelsdi-x/snap/core/ctypes"
32+
"github.com/urfave/cli"
3333
)
3434

3535
type config struct {

cmd/snaptel/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License.
1919

2020
package main
2121

22-
import "github.com/codegangsta/cli"
22+
import "github.com/urfave/cli"
2323

2424
var (
2525

@@ -49,7 +49,7 @@ var (
4949
}
5050
flConfig = cli.StringFlag{
5151
Name: "config, c",
52-
EnvVar: "SNAPCTL_CONFIG_PATH",
52+
EnvVar: "SNAPTEL_CONFIG_PATH,SNAPCTL_CONFIG_PATH",
5353
Usage: "Path to a config file",
5454
Value: "",
5555
}

cmd/snaptel/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828

2929
"golang.org/x/crypto/ssh/terminal"
3030

31-
"github.com/codegangsta/cli"
3231
"github.com/intelsdi-x/snap/mgmt/rest/client"
32+
"github.com/urfave/cli"
3333
)
3434

3535
var (

cmd/snaptel/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import (
2828
"text/tabwriter"
2929
"time"
3030

31-
"github.com/codegangsta/cli"
3231
"github.com/intelsdi-x/snap/mgmt/rest/client"
3332
"github.com/intelsdi-x/snap/mgmt/rest/rbody"
33+
"github.com/urfave/cli"
3434

3535
"github.com/intelsdi-x/snap/pkg/stringutils"
3636
)

cmd/snaptel/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"text/tabwriter"
2929
"time"
3030

31-
"github.com/codegangsta/cli"
31+
"github.com/urfave/cli"
3232
)
3333

3434
func loadPlugin(ctx *cli.Context) error {

cmd/snaptel/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ import (
3333
"text/tabwriter"
3434
"time"
3535

36-
"github.com/codegangsta/cli"
3736
"github.com/intelsdi-x/snap/mgmt/rest/client"
3837
"github.com/intelsdi-x/snap/scheduler/wmap"
3938
"github.com/robfig/cron"
39+
"github.com/urfave/cli"
4040
"golang.org/x/crypto/ssh/terminal"
4141

4242
"github.com/ghodss/yaml"

cmd/snaptel/tribe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import (
2727
"sort"
2828
"text/tabwriter"
2929

30-
"github.com/codegangsta/cli"
3130
"github.com/intelsdi-x/snap/mgmt/tribe/agreement"
31+
"github.com/urfave/cli"
3232
)
3333

3434
func listMembers(ctx *cli.Context) error {

control/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ package control
2222
import (
2323
"fmt"
2424

25-
"github.com/codegangsta/cli"
25+
"github.com/urfave/cli"
2626
)
2727

2828
var (

glide.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)