cli

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cli contains the main sfconfig CLI for the end user. The goal is to be a onestop shop to get the service running with a single `sfconfig` command invocation.

Index

Constants

This section is empty.

Variables

View Source
var DevCmd = &cobra.Command{
	Use:   "dev",
	Short: "developer utilities",
	Run:   func(cmd *cobra.Command, args []string) {},
}
View Source
var DevPrepareCmd = &cobra.Command{
	Use:   "prepare",
	Short: "prepare dev environment",
	Run:   func(cmd *cobra.Command, args []string) { Run(cmd) },
}

Functions

func EnsureCRD

func EnsureCRD()

func EnsureDemoConfig

func EnsureDemoConfig(env *utils.ENV, sfconfig *config.SFConfig, updateDemoTenantDefinition bool)

EnsureDemoConfig prepares a demo config

func EnsureGerritAccess

func EnsureGerritAccess(fqdn string)

func EnsureRepo

func EnsureRepo(sfconfig *config.SFConfig, apiKey string, name string)

func PushRepoIfNeeded

func PushRepoIfNeeded(path string)

func Run

func Run(cmd *cobra.Command)

func SetupTenantInMainYAMLFile added in v0.0.22

func SetupTenantInMainYAMLFile(configPath string, tenantName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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