Skip to main content

InitInteractionProvider

Trait InitInteractionProvider 

Source
pub trait InitInteractionProvider: Send + Sync {
    // Required methods
    fn configure_git_settings(
        &self,
        context: ProjectContext,
    ) -> Result<Option<GitSettingsInput>>;
    fn configure_changelog_settings(
        &self,
        context: ProjectContext,
    ) -> Result<Option<ChangelogSettingsInput>>;
    fn configure_version_settings(&self) -> Result<Option<VersionSettingsInput>>;
}

Required Methods§

Source

fn configure_git_settings( &self, context: ProjectContext, ) -> Result<Option<GitSettingsInput>>

Prompts user to configure git settings. Returns None if user skips this group.

The context parameter provides project information (e.g., whether it’s a single-package project) so the provider can adapt defaults accordingly.

§Errors

Returns an error if the interaction cannot be completed.

Source

fn configure_changelog_settings( &self, context: ProjectContext, ) -> Result<Option<ChangelogSettingsInput>>

Prompts user to configure changelog settings. Returns None if user skips this group.

For single-package projects, the changelog location question should be skipped (defaulting to root), but comparison_links should still be prompted.

§Errors

Returns an error if the interaction cannot be completed.

Source

fn configure_version_settings(&self) -> Result<Option<VersionSettingsInput>>

Prompts user to configure version settings. Returns None if user skips this group.

§Errors

Returns an error if the interaction cannot be completed.

Implementors§