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

feat(CLI): Each generated contract method adds <contract-arg>-file-path #833

Merged
merged 4 commits into from
Aug 4, 2023

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Aug 2, 2023

What

This allows passing file paths in place of arguments. Files are read as strings for all types except Bytes and BytesN which are read as raw bytes.

The info about the new args is in the help doc header for each subcommand, otherwise the new args are hidden to not clog up the help documentation.

Why

This is particularly useful for passing bytes to contracts and avoids needed to convert them to hex as the current CLI requires.

Known limitations

[TODO or N/A]

This allows passing file paths in place of arguments.  Files are read as strings for all types except Bytes and BytesN where the file is read as raw bytes.

The info about the new args is in the help doc header for each subcommand, otherwise the new args are hidden to not clog up the help documentation.
@paulbellamy paulbellamy enabled auto-merge (squash) August 4, 2023 14:47
@paulbellamy paulbellamy merged commit 69d8da5 into stellar:main Aug 4, 2023
willemneal added a commit to AhaLabs/stellar-cli that referenced this pull request Aug 9, 2023
…th (stellar#833)

* feat(CLI): Each generated contract method adds <contract-arg>-file-path

This allows passing file paths in place of arguments.  Files are read as strings for all types except Bytes and BytesN where the file is read as raw bytes.

The info about the new args is in the help doc header for each subcommand, otherwise the new args are hidden to not clog up the help documentation.

* fix: docs

* feat: add conflicts_with to arg-file for normal arg

---------

Co-authored-by: Paul Bellamy <paul@stellar.org>
kalepail pushed a commit to kalepail/soroban-tools that referenced this pull request Aug 10, 2023
…th (stellar#833)

* feat(CLI): Each generated contract method adds <contract-arg>-file-path

This allows passing file paths in place of arguments.  Files are read as strings for all types except Bytes and BytesN where the file is read as raw bytes.

The info about the new args is in the help doc header for each subcommand, otherwise the new args are hidden to not clog up the help documentation.

* fix: docs

* feat: add conflicts_with to arg-file for normal arg

---------

Co-authored-by: Paul Bellamy <paul@stellar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants