Skip to content

feat: CLI plugins SDK #2091

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

Merged
merged 46 commits into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
a5746df
#2090 - Introduce extensibility to Chainloop CLI
gr0 Jun 4, 2025
bf7b20f
Add generated files
gr0 Jun 4, 2025
052084a
Lint related changes and clean up
gr0 Jun 4, 2025
281b1a9
Additional cleanup for linter
gr0 Jun 4, 2025
49229c5
Move the plugin to app/cli
gr0 Jun 8, 2025
36a476b
Refactoring related to how code is structured - logging and action
gr0 Jun 9, 2025
c0deb71
Fix lint issues
gr0 Jun 9, 2025
9b9ae91
Mod tidy
gr0 Jun 9, 2025
036bb7b
Replace plugin info with plugin describe
gr0 Jun 10, 2025
879c8b0
Fix lint error
gr0 Jun 10, 2025
4fa8568
Docs update
gr0 Jun 10, 2025
c5351ac
Extract configuration to common
gr0 Jun 10, 2025
12090e3
Use Discover from go-plugin instead of manually reading the directory
gr0 Jun 10, 2025
002a53e
Avoid print empty describe table when no flags are provided
gr0 Jun 11, 2025
d11f296
Add default flags and pass them to the plugins
gr0 Jun 11, 2025
d940b82
Update app/cli/cmd/plugins.go
gr0 Jun 16, 2025
86a85c1
Move the plugin command to be a child of config
gr0 Jun 16, 2025
bc1952c
Serialize the whole Viper configuration as JSON and provide helper me…
gr0 Jun 17, 2025
a00a8b9
Dont export
gr0 Jun 17, 2025
4b14f5b
Add support for download from an arbitary location
gr0 Jun 17, 2025
6da819c
Plugin download support
gr0 Jun 17, 2025
87380e6
Fix lint issues
gr0 Jun 18, 2025
b4a4338
Simplify plugin list command to only display list of installed plugins
gr0 Jun 22, 2025
a729fc1
Unify download and remove S3 support
gr0 Jun 23, 2025
98b7a20
Simplifications and adjustments to code handling
gr0 Jun 23, 2025
708fef5
Remove flags temporarily
gr0 Jun 23, 2025
ddf65e3
Add positional arguments to plugin config
gr0 Jun 24, 2025
fb2912e
Add persistent flags collection and passing through
gr0 Jun 25, 2025
fdeff25
Remove the distinction between flags
gr0 Jun 27, 2025
46fe044
Interface name adjustments
gr0 Jun 27, 2025
eb9d650
Defer kill() and indicate that the feature is a preview
gr0 Jun 27, 2025
68eac4c
Fix issues after the recent changes
gr0 Jun 28, 2025
e14777a
Refactor packages
gr0 Jun 28, 2025
9539066
Use cobra context
gr0 Jun 28, 2025
8c8cd87
Sort out serialized types
gr0 Jun 28, 2025
1e78f27
Use pointers
gr0 Jun 28, 2025
a0a6368
Dont export the loadFileOrURL function
gr0 Jun 30, 2025
15147ac
Revert the change with appName
gr0 Jun 30, 2025
d879c1e
Fail when slice flag is provided
gr0 Jun 30, 2025
28ad21f
Refactor the plugins and config directories
gr0 Jun 30, 2025
b4ea952
Remove the GetData() from the interface
gr0 Jun 30, 2025
9536de3
Use struct as the result of execution instead of an interface
gr0 Jul 1, 2025
e840d34
Simple logic to retrieve persistent flags from viper and not load the…
gr0 Jul 1, 2025
aae5a01
Merge branch 'main' into add-experimental-support-for-cli-plugins
gr0 Jul 1, 2025
cf5d46a
Mod tidy
gr0 Jul 1, 2025
7274605
Linter errors
gr0 Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/cli/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func newConfigCmd() *cobra.Command {
Short: "Configure this client",
}

cmd.AddCommand(newConfigSaveCmd(), newConfigViewCmd(), newConfigResetCmd())
cmd.AddCommand(newConfigSaveCmd(), newConfigViewCmd(), newConfigResetCmd(), newPluginCmd())
return cmd
}

Expand Down
Loading
Loading