Documentation
¶
Index ¶
Constants ¶
View Source
const ( // OperationListCommands operation OperationListCommands = "list-commands" // OperationListPlatforms operation OperationListPlatforms = "list-platforms" // OperationRenderPage operation OperationRenderPage = "render-page" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { ctx.Context PurgeCache bool Platform string Random bool Cache Cache PagesDirectory string PageSuffix string FoundPlatform string Reader io.ReadCloser Page string Args string AvailablePlatforms []string Color bool Writer io.Writer Operation string }
Context carries state through pipes
func (*Context) RenderPlatform ¶
RenderPlatform formats the platform as `requested (actual)`
Click to show internal directories.
Click to hide internal directories.