mirror of
https://github.com/ko-build/ko.git
synced 2025-11-06 09:19:12 +02:00
Revive progress and warning logs (#203)
These got dropped when we pulled in: https://github.com/google/go-containerregistry/pull/481 Which doesn't log by default, and requires opting in.
This commit is contained in:
@@ -16,13 +16,18 @@ package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/google/go-containerregistry/pkg/logs"
|
||||
"github.com/google/ko/pkg/commands"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logs.Warn.SetOutput(os.Stderr)
|
||||
logs.Progress.SetOutput(os.Stderr)
|
||||
|
||||
// Parent command to which all subcommands are added.
|
||||
cmds := &cobra.Command{
|
||||
Use: "ko",
|
||||
|
||||
Reference in New Issue
Block a user