impl

package
v0.0.0-...-7c9119c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_LOCATION = "$HOME/.config/prom.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version  string            `json:"version"`
	StaleDir string            `json:"stale_dir"`
	Projects map[string]string `json:"projects"`
}

func LoadConfig

func LoadConfig() (Config, error)

func (*Config) Save

func (c *Config) Save() error

type Manager

type Manager struct {
	Config Config
}

func GetManager

func GetManager() (*Manager, error)

func (*Manager) CloseProject

func (m *Manager) CloseProject(name string) error

func (*Manager) Init

func (m *Manager) Init() error

func (*Manager) InitProject

func (m *Manager) InitProject(name string, directory string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL