commands

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

This section is empty.

Variables

View Source
var Docs = &cobra.Command{
	Use:   "docs",
	Short: "init swagger docs",
	Long:  "tool for init swagger docs\nExample: \n  bedrock docs\n  bedrock docs --withoutInternal --withoutDependency\n  bedrock docs -d internal/server/http -g server.go --withoutInternal --withoutDependency",
	RunE:  docs,
}
View Source
var New = &cobra.Command{
	Use:   "new [project name]",
	Short: "create a bedrock project",
	Long:  "create a project using the repository template\nExample: \n  bedrock new\n  bedrock new bedrock-service\n  bedrock new bedrock-service -d /tmp",
	RunE:  newProject,
}
View Source
var Run = &cobra.Command{
	Use:   "run",
	Short: "run bedrock service",
	Long:  "run bedrock service\nExample: \n  bedrock run",
	RunE:  run,
}
View Source
var Upgrade = &cobra.Command{
	Use:   "upgrade [version]",
	Short: "self upgrade",
	Long:  "tool for self-upgrade the bedrock.\nExample: \n  bedrock upgrade\n  bedrock upgrade v1.0.7",
	RunE:  upgrade,
}

Functions

This section is empty.

Types

type Tool

type Tool struct {
	Name         string   `json:"name"`
	Alias        string   `json:"alias"`
	Install      string   `json:"install"`
	Summary      string   `json:"summary"`
	Requirements []string `json:"requirements"`
	Platform     []string `json:"platform"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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