mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-01-07 19:12:44 +00:00
24 lines
383 B
Go
24 lines
383 B
Go
package main
|
|
|
|
import (
|
|
"awalsh128.com/cache-apt-pkgs-action/internal/logging"
|
|
)
|
|
|
|
func main() {
|
|
logging.Init(true)
|
|
|
|
commands := CreateCmds(
|
|
GetCreateKeyCmd(),
|
|
GetInstallCmd(),
|
|
GetRestoreCmd(),
|
|
GetSetupCmd(),
|
|
GetCleanupCmd(),
|
|
GetValidateCmd(),
|
|
)
|
|
cmd, pkgArgs := commands.Parse()
|
|
err := cmd.Run(cmd, pkgArgs)
|
|
if err != nil {
|
|
logging.Fatalf("error: %v\n", err)
|
|
}
|
|
}
|