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

Commit

Permalink
Fix snaptel environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanliu committed Nov 22, 2016
1 parent 8c86419 commit d5bcd4d
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion cmd/snaptel/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
"text/tabwriter"

"github.com/codegangsta/cli"
"github.com/urfave/cli"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/snaptel/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"strconv"
"text/tabwriter"

"github.com/codegangsta/cli"
"github.com/intelsdi-x/snap/core/ctypes"
"github.com/urfave/cli"
)

type config struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/snaptel/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.

package main

import "github.com/codegangsta/cli"
import "github.com/urfave/cli"

var (

Expand Down Expand Up @@ -49,7 +49,7 @@ var (
}
flConfig = cli.StringFlag{
Name: "config, c",
EnvVar: "SNAPCTL_CONFIG_PATH",
EnvVar: "SNAPTEL_CONFIG_PATH,SNAPCTL_CONFIG_PATH",
Usage: "Path to a config file",
Value: "",
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/snaptel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (

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

"github.com/codegangsta/cli"
"github.com/intelsdi-x/snap/mgmt/rest/client"
"github.com/urfave/cli"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/snaptel/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"text/tabwriter"
"time"

"github.com/codegangsta/cli"
"github.com/intelsdi-x/snap/mgmt/rest/client"
"github.com/intelsdi-x/snap/mgmt/rest/rbody"
"github.com/urfave/cli"

"github.com/intelsdi-x/snap/pkg/stringutils"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/snaptel/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"text/tabwriter"
"time"

"github.com/codegangsta/cli"
"github.com/urfave/cli"
)

func loadPlugin(ctx *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/snaptel/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import (
"text/tabwriter"
"time"

"github.com/codegangsta/cli"
"github.com/intelsdi-x/snap/mgmt/rest/client"
"github.com/intelsdi-x/snap/scheduler/wmap"
"github.com/robfig/cron"
"github.com/urfave/cli"
"golang.org/x/crypto/ssh/terminal"

"github.com/ghodss/yaml"
Expand Down
2 changes: 1 addition & 1 deletion cmd/snaptel/tribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"sort"
"text/tabwriter"

"github.com/codegangsta/cli"
"github.com/intelsdi-x/snap/mgmt/tribe/agreement"
"github.com/urfave/cli"
)

func listMembers(ctx *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion control/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package control
import (
"fmt"

"github.com/codegangsta/cli"
"github.com/urfave/cli"
)

var (
Expand Down
12 changes: 6 additions & 6 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import:
- schema
- package: github.com/asaskevich/govalidator
version: 9699ab6b38bee2e02cd3fe8b99ecf67665395c96
- package: github.com/codegangsta/cli
version: 01857ac33766ce0c93856370626f9799281c14f4
- package: github.com/codegangsta/negroni
- package: github.com/urfave/cli
version: ^1.19.0
- package: github.com/urfave/negroni
version: c7477ad8e330bef55bf1ebe300cf8aa67c492d1b
- package: github.com/ghodss/yaml
version: c3eb24aeea63668ebdac08d2e252f20df8b6b1ae
Expand Down
2 changes: 1 addition & 1 deletion mgmt/rest/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package rest
import (
"fmt"

"github.com/codegangsta/cli"
"github.com/urfave/cli"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion mgmt/rest/log_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"net/http"

log "github.com/Sirupsen/logrus"
"github.com/codegangsta/negroni"
"github.com/urfave/negroni"
)

// Logger is a snap middleware that logs to a logrus facility
Expand Down
2 changes: 1 addition & 1 deletion mgmt/rest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
"time"

log "github.com/Sirupsen/logrus"
"github.com/codegangsta/negroni"
"github.com/julienschmidt/httprouter"
"github.com/urfave/negroni"

"github.com/intelsdi-x/snap/core"
"github.com/intelsdi-x/snap/core/cdata"
Expand Down
2 changes: 1 addition & 1 deletion mgmt/tribe/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package tribe
import (
"fmt"

"github.com/codegangsta/cli"
"github.com/urfave/cli"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion scheduler/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package scheduler
import (
"fmt"

"github.com/codegangsta/cli"
"github.com/urfave/cli"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion snapteld.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"golang.org/x/crypto/ssh/terminal"

log "github.com/Sirupsen/logrus"
"github.com/codegangsta/cli"
"github.com/urfave/cli"
"github.com/vrischmann/jsonutil"

"github.com/intelsdi-x/snap/control"
Expand Down

0 comments on commit d5bcd4d

Please sign in to comment.