Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the cli functions to use urfave/cli instead of cobra.
A few variable have been renamed to match, e.g. cfg.CtrKernelSnapshotter to match defaults.ContainerdKernelSnapshotter Signed-off-by: Soule BA <soule@weave.works>
- Loading branch information
Showing
13 changed files
with
393 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
package main | ||
|
||
import ( | ||
"log" | ||
"fmt" | ||
"os" | ||
|
||
"github.com/weaveworks/flintlock/internal/command" | ||
) | ||
|
||
func main() { | ||
rootCmd, err := command.NewRootCommand() | ||
if err != nil { | ||
log.Fatalln(err) | ||
} | ||
app := command.NewApp(os.Stdout) | ||
|
||
if err := rootCmd.Execute(); err != nil { | ||
log.Fatalln(err) | ||
if err := app.Run(os.Args); err != nil { | ||
fmt.Fprintf(os.Stderr, "flintlockd: %s\n", err) | ||
os.Exit(1) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.