Skip to content

feat(clarinet): add completion spec - #2681

Open
ump45nose wants to merge 1 commit into
withfig:masterfrom
ump45nose:feat-clarinet-spec
Open

ump45nose wants to merge 1 commit into
withfig:masterfrom
ump45nose:feat-clarinet-spec

Conversation

@ump45nose

Copy link
Copy Markdown

Summary

  • Adds a new src/clarinet.ts completion spec for the Clarinet Clarity smart contract development CLI, resolving [clarinet] create completion spec #1379.
  • Covers all 13 top-level subcommands (new, check, console, contracts, requirements, deployments, devnet, integrate, lsp, format, dap, completions, help) with their nested subcommands: contracts new/rm, requirements add, deployments check/generate/apply/encrypt, devnet package/start.
  • Option coverage verified against clarinet <cmd> --help: -m/--manifest-path (shared, filepaths template), console deployment-plan flags (-p, -d, -c, -r), deployments apply network defaults (--devnet/--testnet/--mainnet), devnet start (--no-dashboard, --from-genesis), and format flags (-f, -l, -i, -t).

Testing

  • Verified with a real clarinet 3.26.0 binary (Homebrew): clarinet --help, plus --help for contracts, deployments, devnet, requirements, check, console, format, contracts new, deployments apply, and devnet start.
  • prettier, eslint, and tsc --noEmit all pass with no diagnostics for this spec.

Closes #1379

@withfig-bot

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@withfig-bot

Copy link
Copy Markdown
Contributor

Overview

src/clarinet.ts:

Info:

@withfig-bot

Copy link
Copy Markdown
Contributor

Hello @ump45nose,
thank you very much for creating a Pull Request!
Here is a small checklist to get this PR merged as quickly as possible:

  • Do all subcommands / options which take arguments include the args property (args: {})?
  • Are all options modular? E.g. -a -u -x instead of -aux
  • Have all other checks passed?

Please add a 👍 as a reaction to this comment to show that you read this.

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.

[clarinet] create completion spec

2 participants