forked from ignite/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin): support command's flags (ignite#3060)
* wip * wip: implements gob decoder/encoder * flags data are passing the network * hide flags field and expose Flags() func like cobra.Command * Remove cobra.Command field from plugin.Command The field was passed to give access to the flags, but that wasb;t working because cobra.Command is not fully serializable (it has a lot of unexported fields). * comments * add int64 flag type * test: add flags * test: plugin use current ignite/cli * chore: upgrade plugin CLI dep * fix: InitAndCommit doesn't create repo if already exists * chore: improve plugin default code * add CL entry * chore: update plugin CLI dep * fix after merge * dont remove band now * remove replace in plugin gomod and use latest version * fix: plugin.Hooks can return an error * update plugin dep version * add spinner during plugin scaffolding * fix: populate hook.with with plugin config * test: execute commands on linkPluginCmds * test: assert args in TestLinkPluginCmds * test: global args in TestLinkPluginHooks * refac(plugin): merge Commands and Hooks into Manifest Also stop using the same type for definition and execution. Now Manifest returns definition with type Command and Hook, while Execute* methods takes ExecutedCommand and ExecutedHook as parameters. * fix lint error * improve plugin error handling * feat(plugin): support more flag types * update plugin cli version and other fixes * test: try to fix * docs: comment * docs: more comments * docs: more comments * docs: comments * remove slack private lnk * remove private slack link * run make format * docs: add code comments * fix: ExecuteCommand embedding ExecuteCommand cannot implement gob decoder/encoder and at the same time being embeded in ExecutedHook. Co-authored-by: Alex Johnson <[email protected]>
- Loading branch information
Showing
25 changed files
with
1,025 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.