mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-25 18:00:30 +00:00
798c2bc8b2
* migrate urfave/ci v1 -> v2 * refactor cli (format flag) * log error if agent can not listen on port 3000 close #452
22 lines
476 B
Go
22 lines
476 B
Go
package build
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/woodpecker-ci/woodpecker/cli/common"
|
|
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
var buildLogsCmd = &cli.Command{
|
|
Name: "logs",
|
|
Usage: "show build logs",
|
|
ArgsUsage: "<repo/name> [build] [job]",
|
|
Action: buildLogs,
|
|
Flags: common.GlobalFlags,
|
|
}
|
|
|
|
func buildLogs(c *cli.Context) error {
|
|
// TODO: add logs command
|
|
return fmt.Errorf("Command temporarily disabled. See https://github.com/woodpecker-ci/woodpecker/issues/383")
|
|
}
|