add test suite
This commit is contained in:
+5
-4
@@ -16,8 +16,9 @@ import (
|
||||
|
||||
var (
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "dirmd [flags] <directory>",
|
||||
Short: "Generate markdown documentation from directory structure",
|
||||
Use: "dirmd [flags] <directory>",
|
||||
Short: "Generate markdown documentation from directory structure",
|
||||
Version: config.Version,
|
||||
Long: `dirmd walks a directory and generates markdown files with:
|
||||
|
||||
- Directory tree structure
|
||||
@@ -46,7 +47,7 @@ Examples:
|
||||
dirmd -o ./docs ~/repos/myproject --proton-drive
|
||||
|
||||
# Interactive TUI mode
|
||||
dirmd --tui
|
||||
dirmd -i
|
||||
|
||||
# Pick specific files in vertical slices mode
|
||||
dirmd -o ./docs ~/repos/myproject --vertical-slices --pick common/src/lib.rs --pick mssql-extractor/src/processor.rs`,
|
||||
@@ -106,7 +107,7 @@ func run(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
if outputPath == "" {
|
||||
return fmt.Errorf("-o is required (or use --tui for interactive mode)")
|
||||
return fmt.Errorf("-o is required (or use --interactive for interactive mode)")
|
||||
}
|
||||
|
||||
if drivePath != "" && !protonDrive {
|
||||
|
||||
Reference in New Issue
Block a user