Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to use go "modules" #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion editorconfig/check_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package editorconfig

import (
"fmt"
"github.com/codegangsta/cli"
"os"
"strconv"
"strings"

"github.com/urfave/cli"
)

func CheckCommand(c *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion editorconfig/cli.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package editorconfig

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

func CreateCliApp() *cli.App {
Expand Down
3 changes: 2 additions & 1 deletion editorconfig/fix_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package editorconfig

import (
"fmt"
"github.com/codegangsta/cli"
"os"
"strconv"
"strings"

"github.com/urfave/cli"
)

func FixCommand(c *cli.Context) error {
Expand Down
3 changes: 2 additions & 1 deletion editorconfig/ls_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package editorconfig

import (
"fmt"
"github.com/codegangsta/cli"
"strconv"
"strings"

"github.com/urfave/cli"
)

func LsCommand(c *cli.Context) error {
Expand Down
3 changes: 2 additions & 1 deletion editorconfig/rules_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package editorconfig

import (
"fmt"
"github.com/codegangsta/cli"

"github.com/urfave/cli"
)

func RulesCommand(c *cli.Context) error {
Expand Down
3 changes: 2 additions & 1 deletion editorconfig/source_file_finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package editorconfig

import (
"bytes"
"github.com/codegangsta/cli"
"os"
"path/filepath"
"regexp"
"strings"

"github.com/urfave/cli"
)

var containsDotDirectoryRegex = regexp.MustCompile(`(^|/)\.[^/]+/`)
Expand Down
9 changes: 9 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/amyboyd/editorconfig-cli

go 1.15

require (
github.com/go-ini/ini v1.62.0
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca
github.com/urfave/cli v1.22.5
)
16 changes: 16 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/go-ini/ini v1.62.0 h1:7VJT/ZXjzqSrvtraFp4ONq80hTcRQth1c9ZnQ3uNQvU=
github.com/go-ini/ini v1.62.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca h1:NugYot0LIVPxTvN8n+Kvkn6TrbMyxQiuvKdEwFdR9vI=
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca/go.mod h1:uugorj2VCxiV1x+LzaIdVa9b4S4qGAcH6cbhh4qVxOU=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/urfave/cli v1.22.5 h1:lNq9sAHXK2qfdI8W+GRItjCEkI+2oR4d+MEHy1CKXoU=
github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/amyboyd/editorconfig-cli/editorconfig"
"os"

"github.com/amyboyd/editorconfig-cli/editorconfig"
)

func main() {
Expand Down