pub struct PublishArgs {
pub artifact: PathBuf,
pub name: Option<String>,
pub version: Option<String>,
pub publisher: String,
pub signing_key: PathBuf,
pub registry: String,
pub artifact_base: Option<String>,
pub interfaces: Option<Vec<String>>,
pub algorithms: Option<Vec<String>>,
pub dry_run: bool,
}Expand description
Author a registry-ready plugin release.
Loads the built artifact, queries it via the FFI contract, computes
its SHA-256, generates manifest.toml, signs it with the publisher’s
PGP key, and writes a directory tree ready to drop into
github.com/confium/registry/plugins/.
Fields§
§artifact: PathBufPath to the built plugin artifact (.so / .dylib / .dll).
name: Option<String>Plugin name (e.g. botan). Overrides FFI metadata when present.
version: Option<String>Plugin version as SemVer (e.g. 3.2.0). Overrides FFI metadata.
publisher: StringPublisher identity whose key will sign the release.
signing_key: PathBufPath to the publisher’s PGP secret-key file (.asc).
registry: StringRegistry git URL the output is destined for.
artifact_base: Option<String>URL prefix where the artifact will be hosted. The artifact
basename is appended to form [artifact].url.
interfaces: Option<Vec<String>>Override the [interfaces] map (e.g. hash:0,rng:0). Skips the
FFI query when present.
algorithms: Option<Vec<String>>Override the [algorithms] map (e.g. hash:SHA-256;SHA-512).
dry_run: boolPrint the planned actions and output tree without writing to disk
or invoking gpg.
Trait Implementations§
Source§impl Args for PublishArgs
impl Args for PublishArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl CommandFactory for PublishArgs
impl CommandFactory for PublishArgs
Source§impl Debug for PublishArgs
impl Debug for PublishArgs
Source§impl FromArgMatches for PublishArgs
impl FromArgMatches for PublishArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.