Documentation ¶
Index ¶
- Constants
- func AskContentNameHandler(inputs []string) (string, error)
- func AskMetadataNameHandler(inputs []string) (string, error)
- func AskPageNameHandler(inputs []string) (string, error)
- func AskProjectNameHandler(inputs []string) (string, error)
- func AskResourceNameHandler(inputs []string) (string, error)
- func AskThemeName(inputs []string) (string, error)
- func SelectCSSLibHandler(cssLibName string) (string, error)
- func SelectMetadataTypeHandler(mdTypeFlag string) (string, error)
- func SelectNPMClientHandler(items []string, npmClientFlagValue string, logger *logger.Logger) (string, error)
- func SelectPageLanguageHandler(name string) (string, error)
- func SelectResourceHandler(fs afero.Fs, mdResourceFlag string, s *config.SveltinSettings) (string, error)
- func SelectThemeHandler(themeFlag string) (string, error)
Constants ¶
const ( // Blank represents the fontmatter-only template id used when generating the content file. Blank string = "blank" // Sample represents the sample-content template id used when generating the content file. Sample string = "sample" )
const ( Bootstrap string = "bootstrap" Bulma string = "bulma" Scss string = "scss" TailwindCSS string = "tailwindcss" VanillaCSS string = "vanillacss" )
names for the available CSS Lib options
const ( // Svelte set svelte as the language used to scaffold a new page Svelte string = "svelte" // Markdown set markdown as the language used to scaffold a new page Markdown string = "markdown" )
Variables ¶
This section is empty.
Functions ¶
func AskContentNameHandler ¶
AskContentNameHandler if not value, prompts the user to set the content name.
func AskMetadataNameHandler ¶
AskMetadataNameHandler if not value, prompts the user to set the metadata name.
func AskPageNameHandler ¶
AskPageNameHandler if no flag passed, prompts the user to set the page name.
func AskProjectNameHandler ¶
AskProjectNameHandler if no value, prompts the user to set the project name.
func AskResourceNameHandler ¶
AskResourceNameHandler if not value, prompts the user to set the resource name.
func AskThemeName ¶
AskThemeName prompts the user to set the theme name.
func SelectCSSLibHandler ¶
SelectCSSLibHandler if no flag passed, prompts the user to select the CSS lib to be used with the project.
func SelectMetadataTypeHandler ¶
SelectMetadataTypeHandler if not flag passed, prompts the user to select the metadata type.
func SelectNPMClientHandler ¶
func SelectNPMClientHandler(items []string, npmClientFlagValue string, logger *logger.Logger) (string, error)
SelectNPMClientHandler if no flag passed, prompts a list of installed npm client and ask the user to select one.
func SelectPageLanguageHandler ¶
SelectPageLanguageHandler if not flag passed, prompts the user to select the page type when creating new page.
func SelectResourceHandler ¶
func SelectResourceHandler(fs afero.Fs, mdResourceFlag string, s *config.SveltinSettings) (string, error)
SelectResourceHandler if not flag passed, prompts the user to select the resource from the available ones.
func SelectThemeHandler ¶
SelectThemeHandler if no flag passed, prompts a list of available themes (blank, sveltin)
Types ¶
This section is empty.