INNER CODE UNIT · Go
run
umputun/spot · cmd/spot/main.go:134
func run(opts options) error {
if opts.Dry {
printDryRunWarn(opts.Dbg)
}
if opts.Local {
printLocalRunWarn(opts.Dbg)
}
st := time.Now()
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
inventoryFile, err := inventoryFile(opts.Inventory)
if err != nil {
return fmt.Errorf("can't get inentory %q: %w", opts.Inventory, err)
}
pbook, manualSecrets, err := makePlaybook(opts, inventoryFile)