-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.go
46 lines (36 loc) · 1.25 KB
/
outputs.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
39
40
41
42
43
44
45
46
package main
import "fmt"
const (
Version = "v0.1.0"
ProjectName = "envman"
configFileName = "config"
)
const configTemplate = `PROFILE_DIR=/home/%s/.envman/ #Keep the leading slash`
var helpText = fmt.Sprintf(`%s %s
Usage:
%s [command] [flags]
Available Commands:
init Initialize envman in your shell
profile Manage environment profiles
load Load a profile into the current shell
Profile Subcommands:
create Create a new environment profile
edit Edit an existing environment profile
show Display profile contents
delete Delete an environment profile
list List all available profiles
Examples:
# Initialize envman
$ envman init
# Profile Management
$ envman profile create server-test # Create new profile
$ envman profile list # List all profiles
$ envman profile show server-test # Show profile contents
$ envman profile edit server-test # Edit existing profile
$ envman profile delete server-test # Delete profile
# Load Profile
$ envman load server-test # Load profile into current shell
Flags:
-h, --help Display help information
-v, --version Display version information
`, ProjectName, Version, ProjectName)