Documentation ¶
Index ¶
- Constants
- Variables
- func CheckSettings() error
- func FormRequest(url string, params url.Values) string
- func GenerateTitle(startTag string, endTag string) string
- func Get(url string) ([]byte, int)
- func ParseTime(time_str string) (t time.Time, err error)
- func PathExists(path string) bool
- func Post(url string, jsonData []byte) []byte
- func PrintVersion()
- func Put(url string, jsonData []byte) []byte
- func ReadFile(filepath string) []byte
- func Write2File(changes string, file string) error
- type UserSettings
Constants ¶
View Source
const DefaultConfigFile = ".mr-tracker.config.yml"
Variables ¶
View Source
var ( RequestVersion bool Settings UserSettings )
Functions ¶
func GenerateTitle ¶ added in v0.1.2
func PathExists ¶ added in v0.1.0
func PrintVersion ¶
func PrintVersion()
func Write2File ¶ added in v0.1.1
Types ¶
type UserSettings ¶
type UserSettings struct { Site string `yaml:"site,omitempty"` Project int `yaml:"project,omitempty"` Branch string `yaml:"branch,omitempty"` StartTag string `yaml:"start_tag,omitempty"` EndTag string `yaml:"end_tag,omitempty"` PostIssue bool `yaml:"post_issue,omitempty"` Token string `yaml:"token,omitempty"` Output string `yaml:"output,omitempty"` Simplify bool `yaml:"simplify,omitempty"` Latest string `yaml:"latest,omitempty"` }
Settings from command line
func LoadSettings ¶ added in v0.1.0
func LoadSettings() (UserSettings, error)
Click to show internal directories.
Click to hide internal directories.