Documentation
¶
Index ¶
- Constants
- func ConfigLocalPath() (string, error)
- func ConfigPath() (string, error)
- func CreateTmpFile(body string) (string, error)
- type ConfigIssue_t
- type Config_t
- type Red_t
- func (r *Red_t) ClearAll()
- func (r *Red_t) IsConfigBad() bool
- func (r *Red_t) LoadConfig() error
- func (r *Red_t) Save() error
- func (r *Red_t) SaveLocalProject(projectID int) error
- func (r *Red_t) SetApiKey(apiKey string)
- func (r *Red_t) SetEditor(v string)
- func (r *Red_t) SetPager(v string)
- func (r *Red_t) SetProject(id string)
- func (r *Red_t) SetProjectID(id int)
- func (r *Red_t) SetServer(server string)
- func (r *Red_t) SetUserID(id int)
Constants ¶
View Source
const ( RED_CONFIG_REDMINE_URL = "RED_CONFIG_REDMINE_URL" RED_CONFIG_REDMINE_API_KEY = "RED_CONFIG_REDMINE_API_KEY" RED_CONFIG_REDMINE_PROJECT = "RED_CONFIG_REDMINE_PROJECT" RED_CONFIG_REDMINE_PROJECT_ID = "RED_CONFIG_REDMINE_PROJECT_ID" RED_CONFIG_REDMINE_USER_ID = "RED_CONFIG_REDMINE_USER_ID" RED_CONFIG_EDITOR = "RED_CONFIG_EDITOR" RED_CONFIG_PAGER = "RED_CONFIG_PAGER" RED_CONFIG_ISSUE_VIEW_JOURNAL = "RED_CONFIG_ISSUE_VIEW_JOURNAL" CONFIG_REDMINE_URL = "server" CONFIG_REDMINE_API_KEY = "api-key" CONFIG_REDMINE_PROJECT = "project" CONFIG_REDMINE_PROJECT_ID = "project-id" CONFIG_REDMINE_USER_ID = "user-id" CONFIG_EDITOR = "editor" CONFIG_PAGER = "pager" CONFIG_ISSUE = "issue" CONFIG_FILE = "config.json" CONFIG_FOLDER = ".red" DEBUG_FLAG = "debug" DEBUG_FLAG_S = "d" ALL_FLAG = "all" )
Variables ¶
This section is empty.
Functions ¶
func ConfigLocalPath ¶
func ConfigPath ¶
func CreateTmpFile ¶
Types ¶
type ConfigIssue_t ¶
type ConfigIssue_t struct {
ViewJournalAlways bool `json:"view-journal"`
}
type Red_t ¶
type Red_t struct { Spinner *spinner.Spinner Client *http.Client Debug bool `json:"debug"` All bool `json:"all"` Config Config_t `json:"config"` Cmd *cobra.Command Term *terminal.Terminal Test bool }
func InitConfig ¶
func InitConfig() *Red_t
func (*Red_t) IsConfigBad ¶
func (*Red_t) LoadConfig ¶
func (*Red_t) SaveLocalProject ¶
func (*Red_t) SetProject ¶
func (*Red_t) SetProjectID ¶
Click to show internal directories.
Click to hide internal directories.