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

Gadget CLI #205

Merged
merged 9 commits into from
Aug 9, 2024
Merged

Gadget CLI #205

merged 9 commits into from
Aug 9, 2024

Conversation

shekohex
Copy link
Contributor

@shekohex shekohex commented Aug 6, 2024

Overview

  • Added the Gadget CLI as a cargo subcommand.
  • Implemented cargo gadget create to create a new blueprint and its gadget.
  • Implemented cargo gadget deploy to deploy the blueprint to tangle network.
  • added a way to automatically build and deploy the smart contracts for you.

Example

Checkout this PR branch, then do cargo install -p cargo-gadget --path .. Once installed, in a different terminal window/tab, try running cargo gadget create --name hello-world.

You will get a new blueprint from this template https://github.com/webb-tools/blueprint-template/ that contains everything you need to get started.

without any changes, try cargo build or even just go straight to cargo gadget deploy it should build everything for you if it is not built and deploy that to tangle. The command may fail, but following the error instructions should be good start. I did spent some time to write some good instructions when something bad happen to improve the DX.

@shekohex shekohex marked this pull request as ready for review August 9, 2024 16:25
Copy link
Contributor

@drewstone drewstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@shekohex shekohex merged commit 953e687 into main Aug 9, 2024
10 checks passed
@shekohex shekohex deleted the shady/gadget-cli branch August 9, 2024 16:36
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.

2 participants