Rename to "github/gh-cli"

This commit is contained in:
Mislav Marohnić 2019-10-04 10:50:12 +02:00
parent bbe16fe939
commit adf5a832fe
11 changed files with 16 additions and 22 deletions

View file

@ -3,8 +3,8 @@ package command
import (
"fmt"
"github.com/github/gh/git"
"github.com/github/gh/github"
"github.com/github/gh-cli/git"
"github.com/github/gh-cli/github"
"github.com/spf13/cobra"
)

View file

@ -14,7 +14,7 @@ import (
"strings"
"time"
"github.com/github/gh/version"
"github.com/github/gh-cli/version"
)
const (

View file

@ -12,8 +12,8 @@ import (
"strings"
"syscall"
"github.com/github/gh/ui"
"github.com/github/gh/utils"
"github.com/github/gh-cli/ui"
"github.com/github/gh-cli/utils"
"github.com/mitchellh/go-homedir"
"golang.org/x/crypto/ssh/terminal"
)

View file

@ -6,7 +6,7 @@ import (
"os"
"strings"
"github.com/github/gh/git"
"github.com/github/gh-cli/git"
)
var (

View file

@ -20,8 +20,8 @@ import (
"strings"
"time"
"github.com/github/gh/ui"
"github.com/github/gh/utils"
"github.com/github/gh-cli/ui"
"github.com/github/gh-cli/utils"
)
const apiPayloadVersion = "application/vnd.github.v3+json;charset=utf-8"

View file

@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"
"github.com/github/gh/git"
"github.com/github/gh/utils"
"github.com/github/gh-cli/git"
"github.com/github/gh-cli/utils"
)
type Project struct {

View file

@ -6,7 +6,7 @@ import (
"regexp"
"strings"
"github.com/github/gh/git"
"github.com/github/gh-cli/git"
)
var (

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/github/gh
module github.com/github/gh-cli
go 1.13

View file

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/github/gh/command"
"github.com/github/gh-cli/command"
)
func main() {

View file

@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/github/gh/ui"
"github.com/github/gh-cli/ui"
"github.com/kballard/go-shellquote"
)

View file

@ -2,16 +2,10 @@ package version
import (
"fmt"
"github.com/github/gh/git"
)
var Version = "2.12.7"
var Version = "0.0.0"
func FullVersion() (string, error) {
gitVersion, err := git.Version()
if err != nil {
gitVersion = "git version (unavailable)"
}
return fmt.Sprintf("%s\nhub version %s", gitVersion, Version), err
return fmt.Sprintf("gh version %s", Version), nil
}