cmd

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use: "workflow-editor",
	Run: func(cmd *cobra.Command, args []string) {
		currentDir, err := filepath.Abs("./")
		if err != nil {
			failf("Failed to get current dir, error: %s", err)
		}

		bitriseConfigPth := filepath.Join(currentDir, "bitrise.yml")
		log.Printf("Searching for bitrise.yml at: %s", bitriseConfigPth)

		if exist, err := pathutil.IsPathExists(bitriseConfigPth); err != nil {
			failf("Failed to check is bitrise.yml exist, error: %s", err)
		} else if !exist {
			failf("No bitrise config (bitrise.yml) found in the current directory")
		}

		if err := apiserver.LaunchServer(); err != nil {
			failf("Failed to start server, error: %s", err)
		}
	},
}

RootCmd ...

Functions

This section is empty.

Types

type VersionOutputModel

type VersionOutputModel struct {
	Version     string `json:"version,omitempty"`
	OS          string `json:"os,omitempty"`
	GO          string `json:"go,omitempty"`
	BuildNumber string `json:"build_number,omitempty"`
	Commit      string `json:"commit,omitempty"`

	FullVersion bool `json:"-"`
}

VersionOutputModel ...

func (VersionOutputModel) JSON

func (version VersionOutputModel) JSON() string

JSON ...

func (VersionOutputModel) String

func (version VersionOutputModel) String() string

String ...

Jump to

Keyboard shortcuts

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