Documentation
¶
Index ¶
- Constants
- func InitialModel(ghClient *githubv4.Client, workflows []Workflow, outputFmt OutputFmt, ...) model
- func RenderUI(ghClient *githubv4.Client, workflows []Workflow, outputFmt OutputFmt, ...)
- func RightPadTrim(s string, length int) string
- func Trim(s string, length int) string
- type NodeResult
- type OutputFmt
- type QueryResult
- type Workflow
- type WorkflowResult
- type WorkflowRunNodesResult
- type WorkflowRunsFetchedMsg
Constants ¶
View Source
const ( BACKGROUND_COLOR = "#282828" HEADER_COLOR = "#fe8019" RUN_NUMBER_COLOR = "#83a598" WORKFLOW_COLOR = "#d3869b" SUCCESS_COLOR = "#b8bb26" FAILURE_COLOR = "#fb4934" ERROR_COLOR = "#fabd2f" ERROR_DETAIL_COLOR = "#665c54" CONTEXT_COLOR = "#665c54" )
View Source
const ( RUN_NUMBER_WIDTH = 30 WORKFLOW_NAME_WIDTH = 30 )
View Source
const ( ErrorFetchingVersion = "error" SystemNotFound = "not found" )
View Source
const (
HTMLTemplText = `` /* 3138-byte string literal not displayed */
)
View Source
const (
NUM_RUNS_TO_DISPLAY = 3
)
Variables ¶
This section is empty.
Functions ¶
func InitialModel ¶
func RightPadTrim ¶
Types ¶
type NodeResult ¶
type NodeResult struct {
Id string
Workflow WorkflowResult `graphql:"... on Workflow"`
}
type QueryResult ¶
type QueryResult struct {
NodeResult `graphql:"node(id: $workflowId)"`
}
type WorkflowResult ¶
type WorkflowResult struct {
Name string
Id string
Runs struct {
Nodes []WorkflowRunNodesResult
} `graphql:"runs(first: $numWorkflowRuns)"`
}
type WorkflowRunNodesResult ¶
type WorkflowRunsFetchedMsg ¶
type WorkflowRunsFetchedMsg struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.