mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-06-10 13:36:51 +00:00
add install only version
This commit is contained in:
parent
a089d12c87
commit
d6bb512b3e
4 changed files with 26 additions and 9 deletions
15
cmd/install_only/main.go
Normal file
15
cmd/install_only/main.go
Normal 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)
|
||||
}
|
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import "apc-p15-tool/pkg/app"
|
||||
|
||||
// main command line tool
|
||||
func main() {
|
||||
app.Start()
|
||||
app.Start(nil)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue