-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add minimal plugin code This code allows to use the airdrop plugin in a chain (outside of a chain will be possible once global plugin PR is merged), by declaring it in `plugins.yml` file like so: ```yml plugins: - path: github.com/ignite/cli-plugin-airdrop@chore/import-plugin-code ``` Once merged the `@chore/import-plugin-code` can be removed. To test locally, the path can replaced with the absolute path to the cloned repo directory. A specific version of ignite is required for now, compiled from the `feat/network-plugin` branch, because it uses some features I added for the network plugin. Also to compile it locally it's probably required to set `GOSUMDB=off` to avoid the time out issue with sum.golang.org. * upgrade cli version * upgrade cli version * Update cmd/cmd.go Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com> * upgrade CLI version Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
- Loading branch information
Showing
5 changed files
with
521 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
cli-plugin-airdrop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
func NewAirdrop() *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "airdrop", | ||
Short: "Utility tool to create snapshots for an airdrop", | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
fmt.Println("Hello from airdrop command") | ||
return nil | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
module github.com/ignite/cli-plugin-airdrop | ||
|
||
go 1.18 | ||
|
||
require ( | ||
github.com/hashicorp/go-plugin v1.4.6 | ||
github.com/ignite/cli v0.25.3-0.20221214163709-63c7c7b925af | ||
github.com/spf13/cobra v1.6.1 | ||
) | ||
|
||
require ( | ||
github.com/AlecAivazis/survey/v2 v2.3.6 // indirect | ||
github.com/Microsoft/go-winio v0.6.0 // indirect | ||
github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 // indirect | ||
github.com/acomagu/bufpipe v1.0.3 // indirect | ||
github.com/aymerick/douceur v0.2.0 // indirect | ||
github.com/briandowns/spinner v1.19.0 // indirect | ||
github.com/charmbracelet/lipgloss v0.6.0 // indirect | ||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect | ||
github.com/cloudflare/circl v1.1.0 // indirect | ||
github.com/emirpasic/gods v1.18.1 // indirect | ||
github.com/fatih/color v1.13.0 // indirect | ||
github.com/fatih/structs v1.1.0 // indirect | ||
github.com/go-git/gcfg v1.5.0 // indirect | ||
github.com/go-git/go-billy/v5 v5.3.1 // indirect | ||
github.com/go-git/go-git/v5 v5.5.0 // indirect | ||
github.com/gobuffalo/flect v0.3.0 // indirect | ||
github.com/gobuffalo/genny/v2 v2.1.0 // indirect | ||
github.com/gobuffalo/github_flavored_markdown v1.1.3 // indirect | ||
github.com/gobuffalo/helpers v0.6.7 // indirect | ||
github.com/gobuffalo/logger v1.0.7 // indirect | ||
github.com/gobuffalo/packd v1.0.2 // indirect | ||
github.com/gobuffalo/plush/v4 v4.1.16 // indirect | ||
github.com/gobuffalo/tags/v3 v3.1.4 // indirect | ||
github.com/gobuffalo/validate/v3 v3.3.3 // indirect | ||
github.com/gofrs/uuid v4.3.0+incompatible // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/gorilla/css v1.0.0 // indirect | ||
github.com/hashicorp/go-hclog v1.2.0 // indirect | ||
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect | ||
github.com/imdario/mergo v0.3.13 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.1 // indirect | ||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect | ||
github.com/jhump/protoreflect v1.12.1-0.20220721211354-060cc04fc18b // indirect | ||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect | ||
github.com/kevinburke/ssh_config v1.2.0 // indirect | ||
github.com/kr/pretty v0.3.0 // indirect | ||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect | ||
github.com/manifoldco/promptui v0.9.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.16 // indirect | ||
github.com/mattn/go-runewidth v0.0.13 // indirect | ||
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect | ||
github.com/microcosm-cc/bluemonday v1.0.20 // indirect | ||
github.com/mitchellh/go-testing-interface v1.0.0 // indirect | ||
github.com/muesli/reflow v0.3.0 // indirect | ||
github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739 // indirect | ||
github.com/oklog/run v1.0.0 // indirect | ||
github.com/pjbgf/sha1cd v0.2.0 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/rivo/uniseg v0.2.0 // indirect | ||
github.com/rogpeppe/go-internal v1.9.0 // indirect | ||
github.com/sergi/go-diff v1.2.0 // indirect | ||
github.com/sirupsen/logrus v1.9.0 // indirect | ||
github.com/skeema/knownhosts v1.1.0 // indirect | ||
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect | ||
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/xanzy/ssh-agent v0.3.2 // indirect | ||
golang.org/x/crypto v0.3.0 // indirect | ||
golang.org/x/mod v0.7.0 // indirect | ||
golang.org/x/net v0.2.0 // indirect | ||
golang.org/x/sync v0.1.0 // indirect | ||
golang.org/x/sys v0.2.0 // indirect | ||
golang.org/x/term v0.2.0 // indirect | ||
golang.org/x/text v0.4.0 // indirect | ||
golang.org/x/tools v0.3.0 // indirect | ||
google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1 // indirect | ||
google.golang.org/grpc v1.51.0 // indirect | ||
google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 // indirect | ||
gopkg.in/warnings.v0 v0.1.2 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) | ||
|
||
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 |
Oops, something went wrong.