add install only version

This commit is contained in:
Greg T. Wallace 2024-02-02 18:35:21 -05:00
parent a089d12c87
commit d6bb512b3e
4 changed files with 26 additions and 9 deletions
cmd
install_only
tool

15
cmd/install_only/main.go Normal file
View file

@ -0,0 +1,15 @@
package main
import (
"apc-p15-tool/pkg/app"
"os"
)
// a version of the tool that always calls the `install` subcommand
func main() {
// insert install command
args := []string{os.Args[0], "install"}
args = append(args, os.Args[1:]...)
app.Start(args)
}

View file

@ -2,6 +2,7 @@ package main
import "apc-p15-tool/pkg/app"
// main command line tool
func main() {
app.Start()
app.Start(nil)
}