This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
drone-runner-podman/command/command.go
2023-10-04 23:19:30 -05:00

34 lines
712 B
Go

// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by the Polyform License
// that can be found in the LICENSE file.
package command
import (
"context"
"os"
"github.com/drone-runners/drone-runner-podman/command/daemon"
"gopkg.in/alecthomas/kingpin.v2"
)
// program version
var version = "0.0.0"
// empty context
var nocontext = context.Background()
// Command parses the command line arguments and then executes a
// subcommand program.
func Command() {
app := kingpin.New("drone", "drone podman runner")
registerCompile(app)
registerExec(app)
registerCopy(app)
daemon.Register(app)
kingpin.Version(version)
kingpin.MustParse(app.Parse(os.Args[1:]))
}