domain

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProfileCommandName string = "profile"
	DivelogCommandName string = "divelog"
)

Command Names

View Source
const (
	ProfileCommandUsage string = "Fetch my profile."
	DivelogCommandUsage string = "Fetch my divelogs."
)

Command Usages

View Source
const (
	NotAvailableString = "N/A"
	EmptyString        = ""
	EmptyArray         = 0
)

Defaults

View Source
const (
	UsernameFlagName     string = "username"
	PasswordFlagName     string = "password"
	SaveProfileFlagName  string = "save-profile"
	AccessTokenFlagName  string = "access-token"
	LimitFlagName        string = "limit"
	CursorFlagName       string = "cursor"
	UserIDFlagName       string = "user-id"
	StatisticsFlagName   string = "statistics"
	DivelogIDFlagName    string = "divelog-id"
	PrettyFormatFlagName string = "pretty-format"
)

Name Flags

View Source
const (
	UsernameFlagUsage     string = "Set email as username"
	PasswordFlagUsage     string = "Set password"
	SaveProfileFlagUsage  string = "Save token to ~/.atmosrc"
	AccessTokenFlagUsage  string = "Access token to use API"
	LimitFlagUsage        string = "Limit data when querying"
	CursorFlagUsage       string = "Set a point to start querying"
	UserIDFlagUsage       string = "Set user ID"
	StatisticsFlagUsage   string = "Show user statistics"
	DivelogIDFlagUsage    string = "Set divelog ID"
	PrettyFormatFlagUsage string = "Show response as pretty format"
)

Usage Flags

View Source
const (
	SaveProfileFlagDefaultValue  bool   = false
	LimitFlagDefaultValue        int    = 10
	CursorFlagDefaultValue       string = ""
	UserIDFlagDefaultValue       string = ""
	DivelogIDFlagDefaultValue    string = ""
	StatisticsFlagDefaultValue   bool   = false
	PrettyFormatFlagDefaultValue bool   = false
)

Value Flags

View Source
const (
	UsernameFlagRequired    bool = true
	PasswordFlagRequired    bool = true
	AccessTokenFlagRequired bool = true
)

Required Flags

View Source
const (
	ServerFlagName string = "server"
)

Global: Name Flags

View Source
const (
	ServerFlagUsage string = "URI to ATMOS API"
)

Global: Usage Flags

View Source
const (
	ServerFlagValue string = "https://localhost/"
)

Global: Value Flags

Variables

View Source
var (
	ProfileCommandAlias []string = []string{"p", "pr", "pro", "prof"}
	DivelogCommandAlias []string = []string{"d", "di", "div", "dive"}
)

Command Aliases

View Source
var (
	UsernameFlagAliases     = []string{"u"}
	PasswordFlagAliases     = []string{"p"}
	SaveProfileFlagAliases  = []string{"s"}
	AccessTokenFlagAliases  = []string{"t"}
	LimitFlagAliases        = []string{"l"}
	CursorFlagAliases       = []string{"c"}
	UserIDFlagAliases       = []string{"i", "uid"}
	StatisticsFlagAliases   = []string{"S", "stats"}
	DivelogIDFlagAliases    = []string{"L", "logid"}
	PrettyFormatFlagAliases = []string{"P", "pretty"}
)

Flag aliases

View Source
var (
	ServerFlagEnvVars      = []string{"ATMOS_API"}
	AccessTokenFlagEnvVars = []string{"ATMOS_TOKEN"}
	UserIDFlagEnvVars      = []string{"ATMOS_USERID"}
)

Flag envvars

View Source
var (
	ServerFlagAlias []string = []string{"s"}
)

Global: Alias Flags

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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