Skip to content

Commit

Permalink
Rename package to glifio/glif (#147)
Browse files Browse the repository at this point in the history
* Rename package to glifio/glif

* Use /v2 package name for go install
  • Loading branch information
Schwartz10 authored Apr 25, 2024
1 parent e5486a2 commit eec818e
Show file tree
Hide file tree
Showing 49 changed files with 55 additions and 56 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[gha-badge]: https://img.shields.io/github/actions/workflow/status/glifio/cli/test.yml?branch=main
[discord-badge]: https://dcbadge.vercel.app/api/server/5qsJjsP3Re?style=flat-square&theme=clean-inverted&compact=true&theme=blurple

查看中文 README,请点击[这里](https://github.com/glifio/cli/blob/main/README_zh.md)
查看中文 README,请点击[这里](https://github.com/glifio/glif/blob/main/README_zh.md)

**The GLIF Command Line Interface is the starting point for interacting with the GLIF Pools Protocol.**

Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[gha-badge]: https://img.shields.io/github/actions/workflow/status/glifio/cli/test.yml?branch=main
[discord-badge]: https://dcbadge.vercel.app/api/server/5qsJjsP3Re?style=flat-square&theme=clean-inverted&compact=true&theme=blurple

For English README, please click [here](https://github.com/glifio/cli/blob/main/README.md).
For English README, please click [here](https://github.com/glifio/glif/blob/main/README.md).

**GLIF 命令行界面是与 GLIF Pools 协议交互的起点**

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/AlecAivazis/survey/v2"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_admin_set_recovered.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/filecoin-project/go-address"
"github.com/glifio/cli/events"
"github.com/glifio/cli/journal/fsjournal"
"github.com/glifio/glif/v2/events"
"github.com/glifio/glif/v2/journal/fsjournal"
"github.com/glifio/go-pools/abigen"
"github.com/glifio/go-pools/constants"
"github.com/glifio/go-pools/util"
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_borrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/glifio/go-pools/util"
denoms "github.com/glifio/go-pools/util"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/briandowns/spinner"
"github.com/ethereum/go-ethereum/accounts"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
walletutils "github.com/glifio/go-wallet-utils"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_miners_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/briandowns/spinner"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/lotus/chain/types"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/glifio/go-pools/constants"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_miners_change_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types/ethtypes"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/filecoin-project/go-address"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/filecoin-project/go-address"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_miners_reclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/filecoin-project/lotus/build"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/types"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/filecoin-project/go-address"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/glifio/go-pools/constants"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent_pay.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var rootInfoCmd = &cobra.Command{
fmt.Printf("Latest release: %s (prelease / draft release): %t\n", release, stableVersion)

if stableVersion && release != CommitHash {
fmt.Println("There may be a new version of the CLI available at https://github.com/glifio/cli")
fmt.Println("There may be a new version of the CLI available at https://github.com/glifio/glif/v2")
}
},
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"runtime/debug"

"github.com/ethereum/go-ethereum/common"
jnal "github.com/glifio/cli/journal"
"github.com/glifio/cli/journal/fsjournal"
"github.com/glifio/cli/util"
jnal "github.com/glifio/glif/v2/journal"
"github.com/glifio/glif/v2/journal/fsjournal"
"github.com/glifio/glif/v2/util"
"github.com/glifio/go-pools/constants"
"github.com/glifio/go-pools/deploy"
"github.com/glifio/go-pools/sdk"
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/filecoin-project/lotus/chain/types"
ltypes "github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/types/ethtypes"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
denoms "github.com/glifio/go-pools/util"
walletutils "github.com/glifio/go-wallet-utils"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"

"github.com/filecoin-project/lotus/api"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
denoms "github.com/glifio/go-pools/util"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_change_passphrase.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

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

"github.com/AlecAivazis/survey/v2"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_create_agent_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"

"github.com/AlecAivazis/survey/v2"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_export_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

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

"github.com/briandowns/spinner"
"github.com/ethereum/go-ethereum/common"
"github.com/glifio/cli/events"
"github.com/glifio/glif/v2/events"
"github.com/glifio/go-pools/abigen"
"github.com/glifio/go-pools/constants"
"github.com/glifio/go-pools/deploy"
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_import_account_encrypted.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/hex"
"strings"

"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_import_account_raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_label_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"log"

"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"fmt"

"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

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

"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/wallet_rm_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wfil_alllowance.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/briandowns/spinner"
"github.com/glifio/cli/util"
"github.com/glifio/glif/v2/util"
"github.com/spf13/cobra"
)

Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/glifio/cli
module github.com/glifio/glif/v2

go 1.21

Expand Down Expand Up @@ -139,7 +139,6 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/polydawn/refmt v0.89.0 // indirect
github.com/rs/cors v1.8.3 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ github.com/rodaine/table v1.1.0/go.mod h1:Qu3q5wi1jTQD6B6HsP6szie/S4w1QUQ8pq22pz
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo=
github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik=
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
Expand Down
Loading

0 comments on commit eec818e

Please sign in to comment.