-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:gnolang/gno into albttx/package-a…
…lready-in-cache
- Loading branch information
Showing
388 changed files
with
5,356 additions
and
2,776 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
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,35 @@ | ||
name: contribs | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
paths: | ||
- "contribs/**" | ||
- ".github/workflows/contribs.yml" | ||
- "gnovm/**.go" | ||
- "gno.land/**.go" | ||
- "tm2/**.go" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
install: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
goversion: # two latest versions | ||
- "1.21.x" | ||
program: | ||
- "gnomd" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.goversion }} | ||
- run: make install ${{ matrix.program }} | ||
working-directory: contribs |
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
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
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
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
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
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,30 @@ | ||
.PHONY: help | ||
help: | ||
@echo "Available make commands:" | ||
@cat Makefile | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /' | ||
|
||
.PHONY: install | ||
install: install.gnomd | ||
|
||
install.gnomd:; cd gnomd && go install . | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build | ||
|
||
######################################## | ||
# Dev tools | ||
rundep=go run -modfile ../misc/devdeps/go.mod | ||
|
||
.PHONY: fmt | ||
GOFMT_FLAGS ?= -w | ||
fmt: | ||
$(rundep) mvdan.cc/gofumpt $(GOFMT_FLAGS) . | ||
|
||
######################################## | ||
# Test suite | ||
GOTEST_FLAGS ?= -v -p 1 -timeout=30m | ||
|
||
.PHONY: test | ||
test: | ||
@echo "nothing to do." |
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,17 @@ | ||
# Gno Contribs | ||
|
||
This directory houses additional commands and tools designed to enhance your Gno experience. | ||
These tools can range from simple wrappers for `gno`, `gnoland`, and `gnokey` to complete applications. | ||
Some may be Go binaries with their own `go.mod` files, allowing the use of specialized libraries, | ||
while others may be shell scripts or programs written in different languages. | ||
|
||
## Contributing Guidelines | ||
|
||
If you'd like to contribute a tool to Gno Contribs, please follow these guidelines: | ||
|
||
1. **Naming**: Choose a clear and concise name for your tool, starting with one of the prefixes: `gno`, `gnoland`, or `gnokey`, | ||
followed by a short descriptive word or abbreviation. | ||
This naming convention helps users identify the purpose of the tool easily. | ||
|
||
2. **User-Friendly**: Ensure that your tool is user-friendly and follows a similar style to other Gno tools, | ||
providing a consistent experience for users. |
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,16 @@ | ||
# `gnokeykc` | ||
|
||
`gnokeykc` is a Go-based CLI tool that enhances [`gnokey`](../../gno.land/cmd/gnokey) by integrating with your system's keychain. It adds `gnokey kc ...` subcommands to set and unset passwords in the keychain, allowing Gnokey to fetch passwords directly from the keychain instead of prompting for terminal input. | ||
|
||
## Usage | ||
|
||
gnokey kc -h | ||
|
||
## Terminal Alias | ||
|
||
For ease of use, set up a terminal alias to replace `gnokey` with `gnokeykc`: | ||
|
||
echo "alias gnokey='gnokeykc'" >> ~/.bashrc && source ~/.bashrc | ||
|
||
Now, `gnokey` commands will use `gnokeykc`, fetching passwords from the keychain. | ||
|
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,54 @@ | ||
module github.com/gnolang/gno/contribs/gnokeykc | ||
|
||
go 1.20 | ||
|
||
replace github.com/gnolang/gno => ../.. | ||
|
||
require ( | ||
github.com/gnolang/gno v0.0.0-00010101000000-000000000000 | ||
github.com/zalando/go-keyring v0.2.3 | ||
) | ||
|
||
require ( | ||
github.com/alessio/shellescape v1.4.1 // indirect | ||
github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c // indirect | ||
github.com/btcsuite/btcd/btcutil v1.0.0 // indirect | ||
github.com/cespare/xxhash v1.1.0 // indirect | ||
github.com/cespare/xxhash/v2 v2.1.1 // indirect | ||
github.com/cockroachdb/apd v1.1.0 // indirect | ||
github.com/danieljoos/wincred v1.2.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dgraph-io/badger/v3 v3.2103.4 // indirect | ||
github.com/dgraph-io/ristretto v0.1.1 // indirect | ||
github.com/dustin/go-humanize v1.0.0 // indirect | ||
github.com/gnolang/goleveldb v0.0.9 // indirect | ||
github.com/gnolang/overflow v0.0.0-20170615021017-4d914c927216 // indirect | ||
github.com/godbus/dbus/v5 v5.1.0 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect | ||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/google/flatbuffers v1.12.1 // indirect | ||
github.com/gorilla/websocket v1.5.1 // indirect | ||
github.com/jmhodges/levigo v1.0.0 // indirect | ||
github.com/klauspost/compress v1.12.3 // indirect | ||
github.com/libp2p/go-buffer-pool v0.1.0 // indirect | ||
github.com/linxGnu/grocksdb v1.8.4 // indirect | ||
github.com/pelletier/go-toml v1.9.5 // indirect | ||
github.com/peterbourgon/ff/v3 v3.4.0 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/rs/cors v1.10.1 // indirect | ||
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect | ||
go.etcd.io/bbolt v1.3.7 // indirect | ||
go.opencensus.io v0.22.5 // indirect | ||
go.uber.org/atomic v1.7.0 // indirect | ||
go.uber.org/multierr v1.9.0 // indirect | ||
golang.org/x/crypto v0.14.0 // indirect | ||
golang.org/x/mod v0.14.0 // indirect | ||
golang.org/x/net v0.17.0 // indirect | ||
golang.org/x/sys v0.13.0 // indirect | ||
golang.org/x/term v0.13.0 // indirect | ||
golang.org/x/tools v0.13.0 // indirect | ||
google.golang.org/protobuf v1.31.0 // indirect | ||
) |
Oops, something went wrong.