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>>;
    fn configure_filtering_settings(
        &self,
    ) -> Result<Option<FilteringSettingsInput>>;
}

Required Methods§

Source

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

§Errors

Returns an error if the interaction cannot be completed.

Source

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

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>>

§Errors

Returns an error if the interaction cannot be completed.

Source

fn configure_filtering_settings(&self) -> Result<Option<FilteringSettingsInput>>

§Errors

Returns an error if the interaction cannot be completed.

Implementors§