Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.15.0 #26

Merged
merged 3 commits into from
Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update doc
  • Loading branch information
chevdor committed Oct 30, 2021
commit fea50dc8c69af85e73c769f804ca3c9321220c64
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 22 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Any node can be queried to provide its current metadata. This can be displayed i

### Using Cargo

cargo install --locked --git https://github.com/chevdor/subwasm --tag v0.14.1
cargo install --locked --git https://github.com/chevdor/subwasm --tag v0.15.0

### Homebrew

Expand All @@ -49,15 +49,15 @@ MacOS Homebrew users can use:

### Linux

wget https://github.com/chevdor/subwasm/releases/download/v0.14.1/subwasm_linux_amd64_v0.14.1 -O subwasm.deb
wget https://github.com/chevdor/subwasm/releases/download/v0.15.0/subwasm_linux_amd64_v0.15.0 -O subwasm.deb
sudo dpkg -i subwasm.deb
subwasm --help

## Usage

### Command: --help

subwasm 0.14.1
subwasm 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Expand All @@ -81,21 +81,22 @@ MacOS Homebrew users can use:

### Command: get

subwasm-get 0.14.1
subwasm-get 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Get/Download the runtime wasm from a running node through rpc

USAGE:
subwasm get [OPTIONS] [URL]
subwasm get [FLAGS] [OPTIONS] [URL]

ARGS:
<URL> The node url. Example: ws://localhost:9944 or http://localhost:9933 [default:
http://localhost:9933]
<URL> The node url including (mandatory) the port number. Example: ws://localhost:9944 or
http://localhost:9933 [default: http://localhost:9933]

FLAGS:
-h, --help Print help information
-j, --json Output as json
-V, --version Print version information

OPTIONS:
Expand All @@ -114,14 +115,14 @@ MacOS Homebrew users can use:

### Command: info

subwasm-info 0.14.1
subwasm-info 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

The `info` command returns summarized information about a runtime

USAGE:
subwasm info [OPTIONS] [SOURCE]
subwasm info [FLAGS] [OPTIONS] [SOURCE]

ARGS:
<SOURCE> The wasm file to load. It can be a path on your local filesystem such as
Expand All @@ -130,17 +131,20 @@ MacOS Homebrew users can use:

FLAGS:
-h, --help Print help information
-j, --json Output as json
-V, --version Print version information

OPTIONS:
-b, --block <BLOCK>
-b, --block <BLOCK> The optional block where to fetch the runtime. That allows fetching older
runtimes but you will need to connect to archive nodes. Currently, you
must pass a block hash. Passing the block numbers is not supported
--chain <CHAIN> Provide the name of a chain and a random url amongst a list of known
nodes will be used. If you pass a valid --chain, --url will be ignored
--chain local = http://localhost:9933

### Command: meta

subwasm-metadata 0.14.1
subwasm-metadata 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Expand All @@ -160,7 +164,10 @@ MacOS Homebrew users can use:
-V, --version Print version information

OPTIONS:
-b, --block <BLOCK>
-b, --block <BLOCK> The optional block where to fetch the runtime. That allows fetching
older runtimes but you will need to connect to archive nodes.
Currently, you must pass a block hash. Passing the block numbers is not
supported
--chain <CHAIN> Provide the name of a chain and a random url amongst a list of known
nodes will be used. If you pass a valid --chain, --url will be ignored
--chain local = http://localhost:9933
Expand All @@ -170,21 +177,22 @@ MacOS Homebrew users can use:

### Command: diff

subwasm-diff 0.14.1
subwasm-diff 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Compare 2 runtimes

USAGE:
subwasm diff [OPTIONS] [ARGS]
subwasm diff [FLAGS] [OPTIONS] [ARGS]

ARGS:
<SRC_A> The first source [default: runtime_000.wasm]
<SRC_B> The second source [default: runtime_001.wasm]

FLAGS:
-h, --help Print help information
-j, --json Output as json
-V, --version Print version information

OPTIONS:
Expand Down
2 changes: 1 addition & 1 deletion README_src.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:toc: right
:prj: pass:q[`subwasm`]
:cmd: subwasm
:version: v0.14.1
:version: v0.15.0

image::https://github.com/chevdor/subwasm/actions/workflows/quick-check.yml/badge.svg?branch=master[link="https://github.com/chevdor/subwasm/actions/workflows/quick-check.yml"]

Expand Down
1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ version = "0.15.0"
[dependencies]
assert_cmd = "2.0"
clap = "3.0.0-beta.4"
clap_derive = "3.0.0-beta.4"
color-eyre = "0.5.1"
env_logger = "0.9"
log = "0.4"
Expand Down
4 changes: 4 additions & 0 deletions cli/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ pub struct InfoOpts {
#[clap(long, parse(from_str), conflicts_with = "source")]
pub chain: Option<ChainInfo>,

/// The optional block where to fetch the runtime. That allows fetching older runtimes but you will need to connect to archive nodes.
/// Currently, you must pass a block hash. Passing the block numbers is not supported.
#[clap(short, long)]
pub block: Option<String>, // TODO: can do better...
}
Expand All @@ -98,6 +100,8 @@ pub struct MetaOpts {
#[clap(long, short)]
pub module: Option<String>,

/// The optional block where to fetch the runtime. That allows fetching older runtimes but you will need to connect to archive nodes.
/// Currently, you must pass a block hash. Passing the block numbers is not supported.
#[clap(short, long)]
pub block: Option<String>, // TODO: can do better...
}
Expand Down
2 changes: 1 addition & 1 deletion doc/usage.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
subwasm 0.14.1
subwasm 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Expand Down
5 changes: 3 additions & 2 deletions doc/usage_diff.adoc
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
subwasm-diff 0.14.1
subwasm-diff 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Compare 2 runtimes

USAGE:
subwasm diff [OPTIONS] [ARGS]
subwasm diff [FLAGS] [OPTIONS] [ARGS]

ARGS:
<SRC_A> The first source [default: runtime_000.wasm]
<SRC_B> The second source [default: runtime_001.wasm]

FLAGS:
-h, --help Print help information
-j, --json Output as json
-V, --version Print version information

OPTIONS:
Expand Down
9 changes: 5 additions & 4 deletions doc/usage_get.adoc
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
subwasm-get 0.14.1
subwasm-get 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Get/Download the runtime wasm from a running node through rpc

USAGE:
subwasm get [OPTIONS] [URL]
subwasm get [FLAGS] [OPTIONS] [URL]

ARGS:
<URL> The node url. Example: ws://localhost:9944 or http://localhost:9933 [default:
http://localhost:9933]
<URL> The node url including (mandatory) the port number. Example: ws://localhost:9944 or
http://localhost:9933 [default: http://localhost:9933]

FLAGS:
-h, --help Print help information
-j, --json Output as json
-V, --version Print version information

OPTIONS:
Expand Down
9 changes: 6 additions & 3 deletions doc/usage_info.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
subwasm-info 0.14.1
subwasm-info 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

The `info` command returns summarized information about a runtime

USAGE:
subwasm info [OPTIONS] [SOURCE]
subwasm info [FLAGS] [OPTIONS] [SOURCE]

ARGS:
<SOURCE> The wasm file to load. It can be a path on your local filesystem such as
Expand All @@ -14,10 +14,13 @@ ARGS:

FLAGS:
-h, --help Print help information
-j, --json Output as json
-V, --version Print version information

OPTIONS:
-b, --block <BLOCK>
-b, --block <BLOCK> The optional block where to fetch the runtime. That allows fetching older
runtimes but you will need to connect to archive nodes. Currently, you
must pass a block hash. Passing the block numbers is not supported
--chain <CHAIN> Provide the name of a chain and a random url amongst a list of known
nodes will be used. If you pass a valid --chain, --url will be ignored
--chain local = http://localhost:9933
7 changes: 5 additions & 2 deletions doc/usage_meta.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
subwasm-metadata 0.14.1
subwasm-metadata 0.15.0

chevdor <chevdor@gmail.com>:Wilfried Kopp <wilfried@parity.io

Expand All @@ -18,7 +18,10 @@ FLAGS:
-V, --version Print version information

OPTIONS:
-b, --block <BLOCK>
-b, --block <BLOCK> The optional block where to fetch the runtime. That allows fetching
older runtimes but you will need to connect to archive nodes.
Currently, you must pass a block hash. Passing the block numbers is not
supported
--chain <CHAIN> Provide the name of a chain and a random url amongst a list of known
nodes will be used. If you pass a valid --chain, --url will be ignored
--chain local = http://localhost:9933
Expand Down