-
Notifications
You must be signed in to change notification settings - Fork 0
/
ggman.go
38 lines (31 loc) · 1.59 KB
/
ggman.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Package ggman serves as the implementation of the ggman program.
// See documentation of the ggman command as an entry point into the documentation.
//
// Note that this package and it's sub-packages are not intended to be consumed by other go packages.
// The public interface of the ggman is defined only by the ggman executable.
// This package is not considered part of the public interface as such and not subject to Semantic Versioning.
//
// The top-level ggman package is considered to be stand-alone, and (with the exception of 'util') does not directly depend on any of its' sub-packages.
// As such it can be safely used by any sub-package without cyclic imports.
//
//spellchecker:words ggman
package ggman
//spellchecker:words github ggman goprogram
import (
"github.com/tkw1536/ggman/env"
"github.com/tkw1536/goprogram"
)
type ggmanEnv = env.Env
type ggmanParameters = env.Parameters
type ggmanRequirements = env.Requirement
type ggmanFlags = env.Flags
// Program is the type of the ggman Program
type Program = goprogram.Program[ggmanEnv, ggmanParameters, ggmanFlags, ggmanRequirements]
// Command is the type of a ggman Command
type Command = goprogram.Command[ggmanEnv, ggmanParameters, ggmanFlags, ggmanRequirements]
// Context is type type of a Context passed to ggman command
type Context = goprogram.Context[ggmanEnv, ggmanParameters, ggmanFlags, ggmanRequirements]
// Arguments is the type of ggman Arguments
type Arguments = goprogram.Arguments[ggmanFlags]
// Description is the type of descriptions of a ggman command
type Description = goprogram.Description[ggmanFlags, ggmanRequirements]