initial commit [ci skip]

This commit is contained in:
Brad Rydzewski
2019-10-10 19:01:58 -07:00
parent 56c135e4ae
commit 43bbf6e78c
95 changed files with 6579 additions and 1 deletions

32
command/command.go Normal file
View File

@@ -0,0 +1,32 @@
// 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-docker/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 exec runner")
registerCompile(app)
registerExec(app)
daemon.Register(app)
kingpin.Version(version)
kingpin.MustParse(app.Parse(os.Args[1:]))
}