Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONToYamlMigration ¶
type JSONToYamlMigration struct { }
JSONToYamlMigration Defines a fogg json to yaml config file migration
func (*JSONToYamlMigration) Description ¶
func (m *JSONToYamlMigration) Description() string
Description Describes the filetype migration taking place
func (*JSONToYamlMigration) Guard ¶
Guard Checks to see if config file needs to be converted to .yml
func (*JSONToYamlMigration) Prompt ¶
func (m *JSONToYamlMigration) Prompt() bool
Prompt Checks to see if the user wants their config file to be migrated to yml
type Migration ¶
type Migration interface { Description() string //Describes the migration taking Guard(afero.Fs, string) (bool, error) //Returns true if migration is runnable, otherwise error Migrate(afero.Fs, string) (string, error) //Returns path to config and err Prompt() bool //Returns whether the user would like to run the migration }
Migration Defines a fogg migration and the actions that it can perform
type VersionUpgradeMigration ¶
type VersionUpgradeMigration struct { }
VersionUpgradeMigration Defines a fogg version upgrade
func (*VersionUpgradeMigration) Description ¶
func (m *VersionUpgradeMigration) Description() string
Description Describes the upgrade taking place
func (*VersionUpgradeMigration) Guard ¶
Guard Checks the version of the config file and determines whether an upgrade is necessary
func (*VersionUpgradeMigration) Prompt ¶
func (m *VersionUpgradeMigration) Prompt() bool
Prompt Checks to see if the user wants their version to be upgraded
Click to show internal directories.
Click to hide internal directories.