Rename to "github/gh-cli"
This commit is contained in:
parent
bbe16fe939
commit
adf5a832fe
11 changed files with 16 additions and 22 deletions
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/github/gh/version"
|
||||
"github.com/github/gh-cli/version"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/github/gh/git"
|
||||
"github.com/github/gh-cli/git"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/github/gh/git"
|
||||
"github.com/github/gh-cli/git"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/github/gh
|
||||
module github.com/github/gh-cli
|
||||
|
||||
go 1.13
|
||||
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/github/gh/command"
|
||||
"github.com/github/gh-cli/command"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/github/gh/ui"
|
||||
"github.com/github/gh-cli/ui"
|
||||
"github.com/kballard/go-shellquote"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue