r0gue-io / pop-cli

An all-in-one tool for Polkadot development.
GNU General Public License v3.0
57 stars 17 forks source link

refactor: standardise commands #217

Closed evilrobot-01 closed 1 week ago

evilrobot-01 commented 1 week ago

Ensures all commands follow the same command.execute() pattern.

Also adds some doc comments and standardises on a coding style for consistency.

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 11.11111% with 48 lines in your changes missing coverage. Please review.

Project coverage is 65.37%. Comparing base (baacdd3) to head (c715c1f).

@@            Coverage Diff             @@
##             main     #217      +/-   ##
==========================================
+ Coverage   65.16%   65.37%   +0.21%     
==========================================
  Files          37       38       +1     
  Lines        5069     5048      -21     
  Branches     5069     5048      -21     
==========================================
- Hits         3303     3300       -3     
+ Misses       1248     1229      -19     
- Partials      518      519       +1     
Files Coverage Δ
crates/pop-cli/src/commands/new/contract.rs 53.48% <100.00%> (ø)
crates/pop-cli/src/commands/build/contract.rs 0.00% <0.00%> (ø)
crates/pop-cli/src/commands/build/parachain.rs 0.00% <0.00%> (ø)
crates/pop-cli/src/commands/call/contract.rs 0.00% <0.00%> (ø)
crates/pop-cli/src/commands/new/pallet.rs 0.00% <0.00%> (ø)
crates/pop-cli/src/commands/test/contract.rs 0.00% <0.00%> (ø)
crates/pop-cli/src/commands/up/parachain.rs 7.83% <50.00%> (-1.03%) :arrow_down:
crates/pop-cli/src/main.rs 45.33% <0.00%> (+17.91%) :arrow_up:
crates/pop-cli/src/commands/new/parachain.rs 46.27% <66.66%> (+0.16%) :arrow_up:
crates/pop-cli/src/commands/up/contract.rs 0.00% <0.00%> (ø)
... and 2 more

... and 1 file with indirect coverage changes