This tool creates fortify configuration for running an application bundle. The activate action wraps a home-manager activation package and ensures each generation gets activated once. Signed-off-by: Ophestra <cat@gensokyo.uk>
27 lines
338 B
Go
27 lines
338 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"git.gensokyo.uk/security/fortify/internal/fmsg"
|
|
)
|
|
|
|
func main() {
|
|
fmsg.SetPrefix("launch")
|
|
|
|
if len(os.Args) < 2 {
|
|
fmsg.Fatal("invalid arguments")
|
|
}
|
|
|
|
switch os.Args[1] {
|
|
case "activate":
|
|
actionActivate()
|
|
case "start":
|
|
actionStart()
|
|
default:
|
|
fmsg.Fatal("invalid arguments")
|
|
}
|
|
|
|
fmsg.Exit(0)
|
|
}
|