1.0 quality polish — code review, tests, bug fixes, documentation #32

Open
clawbot wants to merge 11 commits from feature/1.0-polish into next
3 changed files with 14 additions and 14 deletions
Showing only changes of commit a6a72faafb - Show all commits

View File

@ -41,8 +41,8 @@ func (mfa *CLIApp) freshenManifestOperation(ctx *cli.Context) error {
basePath := ctx.String("base") basePath := ctx.String("base")
showProgress := ctx.Bool("progress") showProgress := ctx.Bool("progress")
includeDotfiles := ctx.Bool("IncludeDotfiles") includeDotfiles := ctx.Bool("include-dotfiles")
followSymlinks := ctx.Bool("FollowSymLinks") followSymlinks := ctx.Bool("follow-symlinks")
// Find manifest file // Find manifest file
var manifestPath string var manifestPath string

View File

@ -20,8 +20,8 @@ func (mfa *CLIApp) generateManifestOperation(ctx *cli.Context) error {
log.Debug("generateManifestOperation()") log.Debug("generateManifestOperation()")
opts := &mfer.ScannerOptions{ opts := &mfer.ScannerOptions{
IncludeDotfiles: ctx.Bool("IncludeDotfiles"), IncludeDotfiles: ctx.Bool("include-dotfiles"),
FollowSymLinks: ctx.Bool("FollowSymLinks"), FollowSymLinks: ctx.Bool("follow-symlinks"),
Fs: mfa.Fs, Fs: mfa.Fs,
} }

View File

@ -123,13 +123,13 @@ func (mfa *CLIApp) run(args []string) {
}, },
Flags: append(commonFlags(), Flags: append(commonFlags(),
&cli.BoolFlag{ &cli.BoolFlag{
Name: "FollowSymLinks", Name: "follow-symlinks",
Aliases: []string{"follow-symlinks"}, Aliases: []string{"L"},
Usage: "Resolve encountered symlinks", Usage: "Resolve encountered symlinks",
}, },
&cli.BoolFlag{ &cli.BoolFlag{
Name: "IncludeDotfiles", Name: "include-dotfiles",
Aliases: []string{"include-dotfiles"},
Usage: "Include dot (hidden) files (excluded by default)", Usage: "Include dot (hidden) files (excluded by default)",
}, },
&cli.StringFlag{ &cli.StringFlag{
@ -211,13 +211,13 @@ func (mfa *CLIApp) run(args []string) {
Usage: "Base directory for resolving relative paths", Usage: "Base directory for resolving relative paths",
}, },
&cli.BoolFlag{ &cli.BoolFlag{
Name: "FollowSymLinks", Name: "follow-symlinks",
Aliases: []string{"follow-symlinks"}, Aliases: []string{"L"},
Usage: "Resolve encountered symlinks", Usage: "Resolve encountered symlinks",
}, },
&cli.BoolFlag{ &cli.BoolFlag{
Name: "IncludeDotfiles", Name: "include-dotfiles",
Aliases: []string{"include-dotfiles"},
Usage: "Include dot (hidden) files (excluded by default)", Usage: "Include dot (hidden) files (excluded by default)",
}, },
&cli.BoolFlag{ &cli.BoolFlag{