cmd

package
v0.0.0-...-b355e5a Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigCmd

func ConfigCmd() prompter.Command

ConfigCmd returns the config command.

func DeployCmd

func DeployCmd() prompter.Command

DeployCmd returns the init command that initializes borrowed time.

func ExitCmd

func ExitCmd() prompter.Command

ExitCmd returns the exit command. This cannot be in main because of import cycle.

func OpenProject

func OpenProject(projectName string) error

OpenProject opens projectName using the editor specified in the config file.

func OpenWith

func OpenWith(paths ...string) error

OpenWith opens paths with the editor specified in the config.

func ProjectCmd

func ProjectCmd() prompter.Command

ProjectCmd returns the project command.

func Table

func Table(data [][]string, border bool) string

Table returns the [][]string in a tablewriter table.

func TopDirs

func TopDirs(root string) (dirs [][]string, err error)

TopDirs returns the name and full path of top-level directories of root in this format: [][]string{name, fullpath}.

func XMLToJSON

func XMLToJSON(xmlString string) (string, error)

XMLToJSON converts an xml file to JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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