Skip to content

Commit

Permalink
update cli reamde
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka-cpu committed Jan 4, 2025
1 parent 26a02c8 commit e8d5266
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 16 additions & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,21 @@ bonsol -k ./keypair.json -u http://localhost:8899 estimate \

Update onchain input sets.

The input-set command will look for an input set with the following hierarchy:

1. stdin
2. input file
3. execution request file

For example, the following command will use inputs from stdin, instead of the input file or execution request file:

```
cat my_input_file_overrides.json |
bonsol -k ./keypair.json -u http://localhost:8899 input-set \
--op update \
--id <ID> \
-i input_file.json \
-f execution_request_file.json \
```

> An id can be a helpful way of distinguishing input sets. If one isn't provided upon creation, the bonsol client will automatically create one for you.
2 changes: 0 additions & 2 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use bonsol_interface::bonsol_schema::input_set_op_v1_generated::InputSetOp;
use clap::{command, ArgGroup, Args, Parser, Subcommand, ValueEnum};

use crate::common::CliInput;

#[derive(Parser, Debug)]
#[command(version)]
#[command(group(
Expand Down

0 comments on commit e8d5266

Please sign in to comment.