cmd

package
v0.0.0-...-01bad0f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cmd provides the top level commands for the application

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedStorage = errors.New("storage unsupported")
)

Sentinal errors

View Source
var Root = &cobra.Command{
	Use:   "x40.link",
	Short: "Links for Skinks",
	Long: `A short link service. Redirects users to longer links based on an
input code.

A secondary purpose of this application is to demonstrate that I (Andrew Howden)
can indeed write code. If prospective employers come looking, here's some
code!`,
}

Root is the root command for this program

Functions

func Execute

func Execute(c *cobra.Command) sysexits.Sysexit

Execute runs a (root) command, and returns an enriched "error" which describes the exit status of the application. Essentially, a utility that allows this to be validated with tests.

func RunServe

func RunServe(_ *cobra.Command, _ []string) error

RunServe implements the run server command

Types

This section is empty.

Jump to

Keyboard shortcuts

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