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(config): global plugins config #3214

Merged
merged 107 commits into from
Dec 14, 2022
Merged

feat(config): global plugins config #3214

merged 107 commits into from
Dec 14, 2022

Conversation

aljo242
Copy link
Contributor

@aljo242 aljo242 commented Dec 1, 2022

Closes #3132
Closes #3279

Adds the global flag:

ignite plugin add  /home/cozart/go/src/github.com/aljo242/test -g
ignite plugin add github.com/ignite/example-plugin -g

ignite/cmd/cmd.go Outdated Show resolved Hide resolved
ignite/cmd/plugin.go Outdated Show resolved Hide resolved
ignite/cmd/plugin.go Outdated Show resolved Hide resolved
Alex Johnson and others added 4 commits December 13, 2022 10:26
ignite/cmd/plugin.go Outdated Show resolved Hide resolved
@tbruyelle
Copy link
Contributor

@aljo242 I added a last commit to test plugin add PATH KEY=VALUE

tbruyelle
tbruyelle previously approved these changes Dec 13, 2022
Copy link
Contributor

@tbruyelle tbruyelle left a comment

Choose a reason for hiding this comment

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

All good, thanks for the plugin integration test!

@codecov
Copy link

codecov bot commented Dec 13, 2022

Codecov Report

Merging #3214 (604dd60) into main (bdcd0b7) will decrease coverage by 0.01%.
The diff coverage is 25.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3214      +/-   ##
==========================================
- Coverage   20.06%   20.05%   -0.02%     
==========================================
  Files         385      384       -1     
  Lines       30845    30935      +90     
==========================================
+ Hits         6190     6203      +13     
- Misses      24067    24141      +74     
- Partials      588      591       +3     
Impacted Files Coverage Δ
ignite/cmd/plugin.go 28.38% <0.00%> (-4.17%) ⬇️
ignite/config/plugins/config.go 66.66% <ø> (ø)
ignite/pkg/env/env.go 23.07% <9.09%> (-76.93%) ⬇️
ignite/services/plugin/plugin.go 69.81% <57.14%> (+1.24%) ⬆️
ignite/pkg/xfilepath/xfilepath.go 91.66% <88.00%> (-8.34%) ⬇️

ignite/cmd/plugin.go Outdated Show resolved Hide resolved
@aljo242 aljo242 requested a review from tbruyelle December 14, 2022 13:58
@aljo242 aljo242 merged commit 304e5d5 into main Dec 14, 2022
@aljo242 aljo242 deleted the feat/global-plugins branch December 14, 2022 14:22
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* base

* base refactor

* refactor

* rename

* rename

* fix comment

* rename file

* format

* refactor base

* format

* refactor some imports

* imports refactor

* fix

* fix import

* refactor:

* changelog

* changelog

* Update ignite/services/network/networkchain/init.go

Co-authored-by: Jerónimo Albi <[email protected]>

* base -> baseconfig

* refactoring for clarity

* v12 -> v1

* fix tests

* fix integration

* fix name

* fix integration

* format

* Update ignite/cmd/cmd.go

Co-authored-by: Jerónimo Albi <[email protected]>

* imports

* LocateDefault logic

* lint fix

* refactor and test

* finish refactor

* revert

* move

* move

* rename

* fix tests

* fix test

* rename

* add global

* functionality

* format

* fix error statement for global plugins

* typo

* chainconfig

* imports

* fix imports

* address review

* testdata

* better import

* fix test

* changelog

* refactor

* simplify

* RemoveDuplicates

* refactor LoadPlugins

* lint

* add global flag

* add info

* add error prints

* simplify return

* fix test

* fix global parse

* add integration test

* modify test

* fix returns

* use ignite example plugin

* refactor global flag

* Fix plugin integration test

Add more assertion and use an alternate `.ignite` folder to avoid
conflicts with user home.

Also fix `plugin add -g` when `.ignite/plugins` doesn't exist.

* add removed TODO by mistake

* move flags

* return err

* Update ignite/cmd/plugin.go

Co-authored-by: Thomas Bruyelle <[email protected]>

* format

* fix test

* remove yaml tag

* Update ignite/cmd/plugin.go

Co-authored-by: Thomas Bruyelle <[email protected]>

* fix test

* test: add key/value pairs to plugin add

* add detailed plugin

Co-authored-by: Jerónimo Albi <[email protected]>
Co-authored-by: Thomas Bruyelle <[email protected]>
Co-authored-by: Thomas Bruyelle <[email protected]>
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.

Create integration tests for ignite plugin commands Global plugin support
5 participants