init /cmd script
This commit is contained in:
parent
34cdb761e4
commit
1577808844
|
@ -0,0 +1,49 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"git.xdrm.io/xdrm-brackets/nix-amer/internal/clifmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
func help() {
|
||||||
|
|
||||||
|
fmt.Printf("%s\n", clifmt.Color(1, "NAME", true))
|
||||||
|
fmt.Printf("\tnix-amer - the automatic setup tool you need\n")
|
||||||
|
|
||||||
|
fmt.Printf("\n%s\n", clifmt.Color(1, "SYNOPSIS", true))
|
||||||
|
fmt.Printf("\tnix-amer [-d <linux-distro> [-p <package-manager>] [-s <service-manager>] <buildfile>\n")
|
||||||
|
fmt.Printf("\tnix-amer -help\n")
|
||||||
|
fmt.Printf("\tnix-amer -h\n")
|
||||||
|
fmt.Printf("\n")
|
||||||
|
|
||||||
|
fmt.Printf("\n%s\n", clifmt.Color(1, "DESCRIPTION", true))
|
||||||
|
fmt.Printf("\tnix-amer allows you to automate a complete linux setup. If you have a server\n")
|
||||||
|
fmt.Printf("\tor a desktop it will ease your life ! It features package management (install,\n")
|
||||||
|
fmt.Printf("\tdeletion, update), services and configuration through a simple interface.\n")
|
||||||
|
fmt.Printf("\tIts best feature is the configuration understanding ; nix-amer can understand\n")
|
||||||
|
fmt.Printf("\tseveral complex configuration formats and allow you to add or update fields\n")
|
||||||
|
fmt.Printf("\tdirectly with a simple path format : config/file@parentField.childField. This\n")
|
||||||
|
fmt.Printf("\tworks with 'json', 'xml', 'yaml', 'ini', 'toml', and the 'nginx' specific\n")
|
||||||
|
fmt.Printf("\tformat too !!!! :O enjoy\n")
|
||||||
|
|
||||||
|
fmt.Printf("\n%s\n", clifmt.Color(1, "OPTIONS", true))
|
||||||
|
|
||||||
|
fmt.Printf("\t-d, -distro\n\t Define which linux distribution the target will run on.\n")
|
||||||
|
fmt.Printf("\t Available values are 'debian', 'ubuntu', 'alpine', 'solus',\n")
|
||||||
|
fmt.Printf("\t 'arch', 'centos' and 'fedora'.\n")
|
||||||
|
fmt.Printf("\n")
|
||||||
|
|
||||||
|
fmt.Printf("\t-p, -package\n\t Define which package manager to use ; normally it is\n")
|
||||||
|
fmt.Printf("\t automatically guessed if you define the -distro. Available\n")
|
||||||
|
fmt.Printf("\t values are 'apt-get', 'eopkg', 'apk', 'yum', 'dnf' and 'pacman'.\n")
|
||||||
|
fmt.Printf("\n")
|
||||||
|
fmt.Printf("\t-s, -service\n\t Define which service manager to use ; the default\n")
|
||||||
|
fmt.Printf("\t value is 'systemd'. initd is not yet supported.\n")
|
||||||
|
fmt.Printf("\n")
|
||||||
|
|
||||||
|
fmt.Printf("%s\n", clifmt.Color(1, "AUTHORS", true))
|
||||||
|
fmt.Printf("\tnix-amer has been entirely designed and developped by xdrm-brackets\n")
|
||||||
|
fmt.Printf("\t<xdrm.brackets.dev@gmail.com>. Feedback really is appreciated, feel\n")
|
||||||
|
fmt.Printf("\tfree to mail me.\n")
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
help()
|
||||||
|
}
|
Loading…
Reference in New Issue