cmd

package
v0.0.0-...-615f669 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(versionInfo VersionInfo, args []string) int

Types

type Config

type Config struct {
	ConfigFile
	// contains filtered or unexported fields
}

This contains all configuration.

type ConfigFile

type ConfigFile struct {
	Verbose bool `json:"verbose"         mapstructure:"verbose"         yaml:"verbose"`
}

This contains all data settable in the configuration file

type ConfigStatusResponse

type ConfigStatusResponse struct {
	Timestamp string `json:"timestamp"`
	Hashref   string `json:"hashref"`
	Version   int    `json:"version"`
}

type ReleasePackage

type ReleasePackage struct {
	Elixir    interface{} `json:"elixir"`
	Hashref   string      `json:"hashref"`
	Name      string      `json:"name"`
	Repo      interface{} `json:"repo"`
	Timestamp string      `json:"timestamp"`
}

This represents a platform release as returned by the `status/release` endpoint.

type SqitchMigration

type SqitchMigration struct {
	Change    string `json:"change"`
	ChangeID  string `json:"change_id"`
	PlannedAt string `json:"planned_at"`
}

This represents a sqitch migration as returned by the `status/sqitch` endpoint.

type VersionInfo

type VersionInfo struct {
	Version string
	Commit  string
	Date    string
	BuiltBy string
}

func (VersionInfo) LogValue

func (v VersionInfo) LogValue() slog.Value

Jump to

Keyboard shortcuts

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