Documentation ¶
Index ¶
- Constants
- Variables
- func AddProject(c *Config, project, module string) error
- func CreateIfNotPresent(path string) error
- func DoesPathExist(path string) (bool, error)
- func PrintAllProjects(c *Config) error
- func SanitizePath(Path string) (string, error)
- type Config
- type Entry
- type EntryFile
- type Module
- type Project
Constants ¶
View Source
const ( DefaultBaseDirPath = "~/.clockin/" ConfigFileName = "config.yml" )
View Source
const (
DEFAULT_FILE_MODE fs.FileMode = 0644
)
View Source
const (
PROJECT_FILE string = "projects.yml"
)
Variables ¶
View Source
var (
ValidConfigPaths []string = []string{"./config.yml", "~/.clockin/config.yml"}
)
Functions ¶
func AddProject ¶
func CreateIfNotPresent ¶
func DoesPathExist ¶
func PrintAllProjects ¶
func SanitizePath ¶
Types ¶
type Config ¶
type Config struct {
BaseDir string
}
func InitializeConfig ¶
func LoadConfig ¶
func LoadOrInitialiseConfig ¶
func (*Config) GetBaseDir ¶
func (*Config) LoadDefaultConfig ¶
func (*Config) ReadAndSave ¶
func (c *Config) ReadAndSave()
func (*Config) SetBaseDir ¶
Click to show internal directories.
Click to hide internal directories.