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(cmd): make some cmd pkg functions public #3985

Merged
merged 4 commits into from
Feb 23, 2024
Merged

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Feb 22, 2024

close #3982
close #3981

Description

  • Move sourceModificationToString function to xgenny pkg;
  • Move relativePath function to xfilepath pkg;
  • Move newChainWithHomeFlags function to services pkg;

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

Attention: Patch coverage is 21.91781% with 57 lines in your changes are missing coverage. Please review.

Project coverage is 25.70%. Comparing base (2de08af) to head (8916aac).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3985   +/-   ##
=======================================
  Coverage   25.70%   25.70%           
=======================================
  Files         307      307           
  Lines       25727    25730    +3     
=======================================
+ Hits         6612     6614    +2     
+ Misses      18540    18539    -1     
- Partials      575      577    +2     
Files Coverage Δ
ignite/cmd/cmd.go 0.00% <ø> (-5.76%) ⬇️
ignite/cmd/plugin.go 29.35% <100.00%> (ø)
ignite/cmd/chain_build.go 0.00% <0.00%> (ø)
ignite/cmd/chain_debug.go 0.00% <0.00%> (ø)
ignite/cmd/chain_faucet.go 0.00% <0.00%> (ø)
ignite/cmd/chain_init.go 0.00% <0.00%> (ø)
ignite/cmd/chain_lint.go 0.00% <0.00%> (ø)
ignite/cmd/chain_serve.go 0.00% <0.00%> (ø)
ignite/cmd/generate_composables.go 0.00% <0.00%> (ø)
ignite/cmd/generate_go.go 0.00% <0.00%> (ø)
... and 16 more

... and 1 file with indirect coverage changes

@github-actions github-actions bot added the type:services Service-related issues. label Feb 22, 2024
@Pantani Pantani changed the title feat(cmd): move sourceModificationToString function to xgenny and relativePath function to xfilepath feat(cmd): move functions from cmd to be reusable Feb 22, 2024
@Pantani Pantani changed the title feat(cmd): move functions from cmd to be reusable feat(cmd): make some cmd pkg functions public Feb 22, 2024
jeronimoalbi
jeronimoalbi previously approved these changes Feb 23, 2024
julienrbrt
julienrbrt previously approved these changes Feb 23, 2024
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

ACK. Do we backport this?

@Pantani Pantani dismissed stale reviews from julienrbrt and jeronimoalbi via 8916aac February 23, 2024 11:57
@Pantani
Copy link
Collaborator Author

Pantani commented Feb 23, 2024

ACK. Do we backport this?

It will be nice because we can reuse these methods in the WASM app.

@julienrbrt julienrbrt added the backport/v28.x.y Backport to v28.x.y label Feb 23, 2024
@Pantani Pantani merged commit a27cd72 into main Feb 23, 2024
47 checks passed
@Pantani Pantani deleted the feat/public-cmd-funcs branch February 23, 2024 14:46
mergify bot pushed a commit that referenced this pull request Feb 23, 2024
* move `sourceModificationToString` function to `xgenny` and `relativePath` to `xfilepath`

* move `newChainWithHomeFlags` to the services package to be reusable

* add changelog

* rename the method `chain.NewChainWithHomeFlags` to `chain.NewWithHomeFlags`

---------

Co-authored-by: Pantani <Pantani>
(cherry picked from commit a27cd72)

# Conflicts:
#	ignite/cmd/chain_lint.go
#	ignite/cmd/scaffold_configs.go
#	ignite/cmd/scaffold_params.go
julienrbrt pushed a commit that referenced this pull request May 29, 2024
* move `sourceModificationToString` function to `xgenny` and `relativePath` to `xfilepath`

* move `newChainWithHomeFlags` to the services package to be reusable

* add changelog

* rename the method `chain.NewChainWithHomeFlags` to `chain.NewWithHomeFlags`

---------

Co-authored-by: Pantani <Pantani>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v28.x.y Backport to v28.x.y component:ci CI/CD workflow and automated jobs. component:cmd component:configs component:packages type:services Service-related issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changes: make sourceModificationToString exportable change: make newChainWithHomeFlags exportable
3 participants