Skip to content

Commit

Permalink
Merge pull request #103 from nhost/dev
Browse files Browse the repository at this point in the history
updated packages
  • Loading branch information
Mrinal Wahal authored Oct 21, 2021
2 parents 42bb0eb + d961262 commit ae90f64
Show file tree
Hide file tree
Showing 38 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: cli
# binary_name: cli
ldflags: -X "github.com/${{ github.repository }}/cmd.Version=${{ env.VERSION }}" -X "github.com/${{ github.repository }}/nhost.REPOSITORY=${{ github.repository }}"

- name: Notify Community
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This changelog only contains ahigh level overview/abstract of major design and workflow execution changes up to CLI `v1.0.0` from earlier versions.

If you want to read specific changelogs for every major (or breaking change), minor change and patch fix, read them on [release pages](http://github.com/nhost/cli-go/releases).
If you want to read specific changelogs for every major (or breaking change), minor change and patch fix, read them on [release pages](http://github.com/nhost/cli/releases).

Changes:

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

Launch Blazingly Fast Development Environments For Your Nhost Stack

[![Build](https://github.com/nhost/cli-go/actions/workflows/build.yaml/badge.svg)](https://github.com/nhost/cli-go/actions/workflows/build.yaml)
[![Release](https://github.com/nhost/cli-go/actions/workflows/release.yaml/badge.svg)](https://github.com/nhost/cli-go/actions/workflows/release.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/nhost/cli-go)](https://goreportcard.com/report/github.com/nhost/cli-go)
[![Build](https://github.com/nhost/cli/actions/workflows/build.yaml/badge.svg)](https://github.com/nhost/cli/actions/workflows/build.yaml)
[![Release](https://github.com/nhost/cli/actions/workflows/release.yaml/badge.svg)](https://github.com/nhost/cli/actions/workflows/release.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/nhost/cli)](https://goreportcard.com/report/github.com/nhost/cli)
<a href="https://twitter.com/nhostio" target="_blank" rel="noopener noreferrer">
<img src="https://img.shields.io/twitter/follow/nhostio?style=social" />
</a>
Expand Down Expand Up @@ -56,7 +56,7 @@ Launch Blazingly Fast Development Environments For Your Nhost Stack

# Design

To properly understand the design philosophy adopted by Nhost for this CLI, [read this](https://github.com/nhost/cli-go/wiki/Design-Philosophy).
To properly understand the design philosophy adopted by Nhost for this CLI, [read this](https://github.com/nhost/cli/wiki/Design-Philosophy).

## All-powerful `nhost` command

Expand Down Expand Up @@ -96,7 +96,7 @@ Installing the CLI is easy.
- If you version is less than `v1.0.0`, then download the latest version by executing the following in your terminal:

```
curl -L https://raw.githubusercontent.com/nhost/cli-go/main/get.sh | bash
curl -L https://raw.githubusercontent.com/nhost/cli/main/get.sh | bash
```

This will autoatically detect your **operating system** and **platform/architecture**, and download it's equivalent binary in `/usr/local/bin` directory.
Expand All @@ -111,14 +111,14 @@ If your installed version is >= `v1.0.0`, then your CLI version already supports

If you have `curl` and `Windows Subsytem for Linux` in your windows environment, you can safely use the above command, and it should download the `.exe` variant of the binary in your current working directory.

However, if you do not have the above dependencies, then you can manually download the [latest release](https://github.com/nhost/cli-go/releases) binary depending on your platform architecture from [here](https://github.com/nhost/cli-go/releases).
However, if you do not have the above dependencies, then you can manually download the [latest release](https://github.com/nhost/cli/releases) binary depending on your platform architecture from [here](https://github.com/nhost/cli/releases).

## Installing Using Go

If you have go installed in your system, and would like to download using that,
please use the following command:

go get -u github.com/nhost/cli-go
go get -u github.com/nhost/cli

This command will install the `nhost` executable binary
along with its dependencies.
Expand Down
2 changes: 1 addition & 1 deletion cmd/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"runtime"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ import (
"syscall"
"text/tabwriter"

"github.com/nhost/cli-go/environment"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/environment"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"strings"
"text/tabwriter"

"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import (
"sync"
"syscall"

"github.com/nhost/cli-go/environment"
"github.com/nhost/cli-go/functions"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/environment"
"github.com/nhost/cli/functions"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
"strings"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/hasura"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/hasura"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
"strings"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"fmt"
"os"

"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import (
"strings"
"syscall"

"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
"golang.org/x/term"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ SOFTWARE.
package cmd

import (
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"strings"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
"path/filepath"
"strconv"

"github.com/nhost/cli-go/hasura"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/hasura"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"context"

"github.com/docker/docker/client"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"path/filepath"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/logger"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/logger"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion cmd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"path/filepath"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"path/filepath"

"github.com/manifoldco/promptui"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
"runtime"

"github.com/hashicorp/go-getter"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"

"github.com/hashicorp/go-getter"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
)

// download a remote directory/file to local
Expand Down
4 changes: 2 additions & 2 deletions cmd/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"net/http"

"github.com/nhost/cli-go/environment"
"github.com/nhost/cli-go/logger"
"github.com/nhost/cli/environment"
"github.com/nhost/cli/logger"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package cmd
import (
"runtime"

"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/nhost"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions environment/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
client "github.com/docker/docker/client"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/sirupsen/logrus"
)

Expand Down
8 changes: 4 additions & 4 deletions environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"time"

client "github.com/docker/docker/client"
"github.com/nhost/cli-go/logger"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli-go/watcher"
"github.com/nhost/cli/logger"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/nhost/cli/watcher"
"github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions environment/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package environment
import (
"path/filepath"

"github.com/nhost/cli-go/hasura"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/hasura"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
)

// Explain what it does
Expand Down
4 changes: 2 additions & 2 deletions environment/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"io/fs"
"path/filepath"

"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
)

func getBranchHEAD(root string) string {
Expand Down
6 changes: 3 additions & 3 deletions environment/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sync"

client "github.com/docker/docker/client"
"github.com/nhost/cli-go/hasura"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/watcher"
"github.com/nhost/cli/hasura"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/watcher"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion environment/vars.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package environment

import "github.com/nhost/cli-go/logger"
import "github.com/nhost/cli/logger"

var (

Expand Down
8 changes: 4 additions & 4 deletions functions/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"path/filepath"
"strings"

"github.com/nhost/cli-go/environment"
"github.com/nhost/cli-go/logger"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli-go/util"
"github.com/nhost/cli/environment"
"github.com/nhost/cli/logger"
"github.com/nhost/cli/nhost"
"github.com/nhost/cli/util"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ NC='\033[0m'
INSTALL_PATH=${INSTALL_PATH:-"/usr/local/bin"}
NEED_SUDO=1

REPO="nhost/cli-go"
REPO="nhost/cli"

function maybe_sudo() {
if [[ "$NEED_SUDO" == '1' ]]; then
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nhost/cli-go
module github.com/nhost/cli

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions hasura/hasura.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (

"gopkg.in/yaml.v2"

"github.com/nhost/cli-go/logger"
"github.com/nhost/cli-go/nhost"
"github.com/nhost/cli/logger"
"github.com/nhost/cli/nhost"
"github.com/sirupsen/logrus"
)

Expand Down
Loading

0 comments on commit ae90f64

Please sign in to comment.