Rename dnote-io to dnote (#94)

This commit is contained in:
Sung Won Cho 2018-08-23 08:11:39 +10:00 committed by GitHub
commit 3148d3705b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 79 additions and 79 deletions

View file

@ -8,13 +8,13 @@ A command line interface for spontaneously capturing the things you learn while
On Linux or macOS, run:
curl -s https://raw.githubusercontent.com/dnote-io/cli/master/install.sh | sh
curl -s https://raw.githubusercontent.com/dnote/cli/master/install.sh | sh
In some cases, you might need an elevated permission:
curl -s https://raw.githubusercontent.com/dnote-io/cli/master/install.sh | sudo sh
curl -s https://raw.githubusercontent.com/dnote/cli/master/install.sh | sudo sh
On Windows, download [binary](https://github.com/dnote-io/cli/releases).
On Windows, download [binary](https://github.com/dnote/cli/releases).
## Overview
@ -47,10 +47,10 @@ Please refer to [commands](/COMMANDS.md).
* [Dnote](https://dnote.io)
* [Dnote Cloud](https://dnote.io/cloud)
* [Browser Extension](https://github.com/dnote-io/browser-extension)
* [Browser Extension](https://github.com/dnote/browser-extension)
## License
MIT
[![Build Status](https://travis-ci.org/dnote-io/cli.svg?branch=master)](https://travis-ci.org/dnote-io/cli)
[![Build Status](https://travis-ci.org/dnote/cli.svg?branch=master)](https://travis-ci.org/dnote/cli)

View file

@ -4,9 +4,9 @@ import (
"fmt"
"time"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -5,9 +5,9 @@ import (
"strconv"
"time"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -5,9 +5,9 @@ import (
"strconv"
"time"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -3,9 +3,9 @@ package login
import (
"fmt"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -5,9 +5,9 @@ import (
"sort"
"strings"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -4,10 +4,10 @@ import (
"fmt"
"strconv"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/dnote/cli/utils"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -1,10 +1,10 @@
package root
import (
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/migrate"
"github.com/dnote-io/cli/upgrade"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/migrate"
"github.com/dnote/cli/upgrade"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -9,9 +9,9 @@ import (
"io/ioutil"
"net/http"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -1,9 +1,9 @@
package upgrade
import (
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/upgrade"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/upgrade"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)

View file

@ -3,8 +3,8 @@ package version
import (
"fmt"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/spf13/cobra"
)

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
"time"
"github.com/dnote-io/cli/infra"
"github.com/dnote/cli/infra"
"github.com/pkg/errors"
"github.com/satori/go.uuid"
)

View file

@ -9,8 +9,8 @@ import (
"strings"
"time"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/utils"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"

View file

@ -1,8 +1,8 @@
package core
import (
"github.com/dnote-io/cli/testutils"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/testutils"
"github.com/dnote/cli/utils"
"github.com/pkg/errors"
"io/ioutil"
"os"

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
"sort"
"github.com/dnote-io/cli/infra"
"github.com/dnote/cli/infra"
"github.com/pkg/errors"
)

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"
"github.com/dnote-io/cli/testutils"
"github.com/dnote/cli/testutils"
"github.com/pkg/errors"
)

View file

@ -8,7 +8,7 @@ set -eu
not_supported() {
echo "OS not supported: ${UNAME}"
echo "Please compile manually from https://github.com/dnote-io/cli"
echo "Please compile manually from https://github.com/dnote/cli"
exit 1
}
@ -46,8 +46,8 @@ install() {
fi
fi
LATEST=$(curl -s https://api.github.com/repos/dnote-io/cli/tags | grep -Eo '"name":[ ]*"v[0-9]*\.[0-9]*\.[0-9]*",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
URL="https://github.com/dnote-io/cli/releases/download/$LATEST/dnote-$PLATFORM"
LATEST=$(curl -s https://api.github.com/repos/dnote/cli/tags | grep -Eo '"name":[ ]*"v[0-9]*\.[0-9]*\.[0-9]*",' | head -n 1 | sed 's/[," ]//g' | cut -d ':' -f 2)
URL="https://github.com/dnote/cli/releases/download/$LATEST/dnote-$PLATFORM"
DEST=${DEST:-/usr/local/bin/dnote}
if [ -z $LATEST ]; then

26
main.go
View file

@ -5,22 +5,22 @@ import (
"os"
"os/user"
"github.com/dnote-io/cli/cmd/root"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/cmd/root"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
// commands
"github.com/dnote-io/cli/cmd/add"
"github.com/dnote-io/cli/cmd/cat"
"github.com/dnote-io/cli/cmd/edit"
"github.com/dnote-io/cli/cmd/login"
"github.com/dnote-io/cli/cmd/ls"
"github.com/dnote-io/cli/cmd/remove"
"github.com/dnote-io/cli/cmd/sync"
"github.com/dnote-io/cli/cmd/upgrade"
"github.com/dnote-io/cli/cmd/version"
"github.com/dnote/cli/cmd/add"
"github.com/dnote/cli/cmd/cat"
"github.com/dnote/cli/cmd/edit"
"github.com/dnote/cli/cmd/login"
"github.com/dnote/cli/cmd/ls"
"github.com/dnote/cli/cmd/remove"
"github.com/dnote/cli/cmd/sync"
"github.com/dnote/cli/cmd/upgrade"
"github.com/dnote/cli/cmd/version"
)
// apiEndpoint is populated during link time

View file

@ -13,10 +13,10 @@ import (
"github.com/pkg/errors"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/testutils"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/testutils"
"github.com/dnote/cli/utils"
)
var binaryName = "test-dnote"

View file

@ -9,8 +9,8 @@ import (
"github.com/pkg/errors"
"gopkg.in/yaml.v2"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/utils"
)
var (
@ -131,7 +131,7 @@ func restoreBackup(ctx infra.DnoteCtx) error {
if err != nil {
log.Printf(`Failed to restore backup for a failed migration.
Don't worry. Your data is still intact in the backup directory.
Get help on https://github.com/dnote-io/cli/issues`)
Get help on https://github.com/dnote/cli/issues`)
}
}()

View file

@ -8,8 +8,8 @@ import (
"path/filepath"
"testing"
"github.com/dnote-io/cli/testutils"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/testutils"
"github.com/dnote/cli/utils"
"github.com/pkg/errors"
"gopkg.in/yaml.v2"
)

View file

@ -7,8 +7,8 @@ import (
"os"
"time"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/utils"
"github.com/pkg/errors"
"github.com/satori/go.uuid"
"gopkg.in/yaml.v2"

View file

@ -10,8 +10,8 @@ import (
"reflect"
"testing"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/utils"
"github.com/pkg/errors"
)

View file

@ -11,10 +11,10 @@ import (
"runtime"
"time"
"github.com/dnote-io/cli/core"
"github.com/dnote-io/cli/infra"
"github.com/dnote-io/cli/log"
"github.com/dnote-io/cli/utils"
"github.com/dnote/cli/core"
"github.com/dnote/cli/infra"
"github.com/dnote/cli/log"
"github.com/dnote/cli/utils"
"github.com/google/go-github/github"
"github.com/pkg/errors"
)
@ -96,7 +96,7 @@ func Upgrade(ctx infra.DnoteCtx) error {
// Fetch the latest version
gh := github.NewClient(nil)
releases, _, err := gh.Repositories.ListReleases(context.Background(), "dnote-io", "cli", nil)
releases, _, err := gh.Repositories.ListReleases(context.Background(), "dnote", "cli", nil)
if err != nil {
return err
@ -176,6 +176,6 @@ func Upgrade(ctx infra.DnoteCtx) error {
}
log.Successf("updated: v%s -> v%s\n", core.Version, latestVersion)
log.Plain("changelog: https://github.com/dnote-io/cli/releases\n\n")
log.Plain("changelog: https://github.com/dnote/cli/releases\n\n")
return nil
}

View file

@ -9,7 +9,7 @@ import (
"path/filepath"
"time"
"github.com/dnote-io/cli/log"
"github.com/dnote/cli/log"
"github.com/pkg/errors"
"github.com/satori/go.uuid"
)