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: added handling for all plugin command functionality #61

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

eddie-knight
Copy link
Contributor

@eddie-knight eddie-knight commented Jan 31, 2025

This PR moves all command logic that is common to plugins into SDK functions.


This pull request introduces a new command plugin system for the Privateer project. The changes include adding a new command package, creating a Plugin type, and defining several command functions. Additionally, a new constructor function for the Vessel type is added in the pluginkit package.

Command Plugin System:

  • command/plugin.go: Added a new command package with a Plugin type and functions to create and manage plugin commands, including runCommand, debugCommand, and versionCommand.

Vessel Constructor:

  • pluginkit/vessel.go: Introduced a NewVessel constructor function to initialize a Vessel with required parameters such as name, armory, initializer, and requiredVars.

@eddie-knight eddie-knight merged commit 12c82e8 into main Jan 31, 2025
6 checks passed
@eddie-knight eddie-knight deleted the feat/commands branch January 31, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants