command

package
v0.0.0-...-8c447f9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const EXT = ".md"

Variables

This section is empty.

Functions

func AreWeInProjectDir

func AreWeInProjectDir() (string, error)

func ConvertTemplateName

func ConvertTemplateName(appDir string, path string) string

func CreateNewApp

func CreateNewApp(rootDir string, name string) error

func FindPartialTemplates

func FindPartialTemplates(appDir string) []string

func GetRelativePath

func GetRelativePath(appDir string, path string) (string, error)

func LoadFileAsString

func LoadFileAsString(path string) (string, error)

func LoadPartialTemplates

func LoadPartialTemplates(appDir string, partialTemplatePaths []string, collectorTemplate *template.Template) *template.Template

func ParseAndInsert

func ParseAndInsert(appDir string, content string, jsonContent map[string]interface{}, htmlTemplate string) (string, error)

func PathToDirs

func PathToDirs(path string) []string

func Reverse

func Reverse(things []string) []string

func SplitJsonAndMarkdown

func SplitJsonAndMarkdown(filename string) (map[string]interface{}, string, error)

Types

type CreateCommand

type CreateCommand struct {
	Name string
	Ui   cli.Ui
}

func (*CreateCommand) Help

func (c *CreateCommand) Help() string

func (*CreateCommand) Run

func (c *CreateCommand) Run(args []string) int

func (*CreateCommand) Synopsis

func (c *CreateCommand) Synopsis() string

type NewCommand

type NewCommand struct {
	Name string
	Ui   cli.Ui
}

func (*NewCommand) Help

func (c *NewCommand) Help() string

func (*NewCommand) Run

func (c *NewCommand) Run(args []string) int

func (*NewCommand) Synopsis

func (c *NewCommand) Synopsis() string

type RunCommand

type RunCommand struct {
	Name string
	Ui   cli.Ui
}

func (*RunCommand) Help

func (c *RunCommand) Help() string

func (*RunCommand) Run

func (c *RunCommand) Run(args []string) int

func (*RunCommand) Synopsis

func (c *RunCommand) Synopsis() string

Jump to

Keyboard shortcuts

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