-
Notifications
You must be signed in to change notification settings - Fork 23
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: adding new packages to workspace Cargo.toml automatically #277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!!
Left few comments, most of it regarding consistency with the rest of the code.
Only thing to fix is the functionality for contracts.
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #277 +/- ##
==========================================
+ Coverage 69.54% 70.12% +0.57%
==========================================
Files 51 51
Lines 8344 8581 +237
Branches 8344 8581 +237
==========================================
+ Hits 5803 6017 +214
- Misses 1591 1610 +19
- Partials 950 954 +4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Thanks again for contributing to pop-cli
.
… that's already in the workspace doesn't include it again
* Interactive interface added * Update pick_options_and_give_name macro to handle an arbitrary amount of cases, allowing pick several options for the same object * New macro for multiselect from an enum. Improve the CLI to support more options * Adding the possibility of using custom origins * Adding Cargo.toml generation * Template lib.rs. Pending of review * Finishing lib (and related) templates * New mock config * Finishing templates * Adding some tests for the folder structure * Formatting repo * Solving mock implementation of common types when no default config issue * Adding more links to Polkadot-SDK-docs * Formatting lib.rs.templ * Solving small issues * Solving doc test issue, the struct used in that test was modified by this PR * Apply suggestions from code review Comment corrections by Bruno Co-authored-by: Bruno Galvao <[email protected]> * Adding simple/advanced modes * Adding advanced mode * Adding advanced mode * Formatting and solving conflicts * Solving small template issues * Formatting the template after generation * Formatting pallet * Updating template generation * Improving manifest test suite * Allowing storage/common_types from CLI + template improvement * Solving bug related to PR #277: Regenerating a crate with POP that's already in the workspace doesn't include it again * Finishing templates with examples; solving some small bugs produced when a pallet is generated from a workspace * Finishing templates with examples; solving some small bugs produced when a pallet is generated from a workspace * Deleting legacy file * Improving UX * Applying suggested changes * Applying suggested changes * Adding a whiteline to lib.rs.templ for formatting, not so important * Not including default config if config trait empty * Improve advanced help examples * Improve advanced help examples * Improve advanced help examples * Applying suggestions --------- Co-authored-by: Bruno Galvao <[email protected]>
Related to:
Cargo.toml
automatically #275While working in the PR #261 I've been thinking that the feature described in the issue is a must. I took the time to work on a potential solution, hope you find it useful :)