command

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var AdminUsername = "admin@super.sailor"
View Source
var (
	ErrKindArgumentMissing = errors.New("kind or env as argument is required")
)

Functions

func ApplyCommand

func ApplyCommand(cfg *CLIConfig) *cobra.Command

func CreateCommand

func CreateCommand(cfg *CLIConfig) *cobra.Command

func DeployCommand

func DeployCommand(cfg *CLIConfig) *cobra.Command

func GetCommand

func GetCommand(cfg *CLIConfig) *cobra.Command

func InitCommand added in v0.0.4

func InitCommand(cfg *CLIConfig) *cobra.Command

func LoginCommand

func LoginCommand(cfg *CLIConfig) *cobra.Command

func RBACCommand

func RBACCommand(cfg *CLIConfig) *cobra.Command

func SchemaCommand

func SchemaCommand(cfg *CLIConfig) *cobra.Command

func SettingCommand

func SettingCommand(cfg *CLIConfig) *cobra.Command

func SyncCommand added in v0.0.4

func SyncCommand(cfg *CLIConfig) *cobra.Command

func UpdateConfig

func UpdateConfig(config *CLIConfig, basePath string) error

Types

type CLIConfig

type CLIConfig struct {
	// Manifest is used to know details about different environment sailor is hosted in
	Manifest v1.SailorManifest `json:"manifest"`

	// SailorRoot is mostly ~/.sailor
	SailorRoot string `json:"-"`

	// Env is the current selected environment by the user
	Env string `json:"env"`

	// SailorHost is the host of the current selected environment, splatted for ease
	// of use
	SailorHost string `json:"-"`

	// SailorClient is the REST API client created with SailorHost
	SailorClient *v1.CoreAPIClient `json:"-"`

	// Token is the admin/user token fetched after logged in, it works until
	// it expires!
	Token string `json:"token"`

	// User is used for global set an email which can then be used for logging
	// in to your sailor core server
	User string `json:"user"`

	// CwdSailorFile is the sailor file in the current working directory
	CwdSailorFile types.SailorFile `json:"-"`

	// CwdSailorLockFile is the sailor lock file in the current working directory
	CwdSailorLockFile types.SailorLockFile `json:"-"`
}

func GetConfig

func GetConfig(basePath string) (*CLIConfig, error)

Jump to

Keyboard shortcuts

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