add omit md

This commit is contained in:
2026-08-27 14:42:00 +01:00
parent 2bbbf4e81e
commit a2afce3f8d
4 changed files with 22 additions and 1 deletions
+3
View File
@@ -69,6 +69,7 @@ Examples:
skipFrontend bool
frontendOnly bool
omitTest bool
omitMd bool
)
func Execute() {
@@ -92,6 +93,7 @@ func init() {
rootCmd.Flags().BoolVar(&skipFrontend, "skip-frontend", false, "omit frontend file types (.html, .css, .js, .ts, .vue, .svelte, etc.)")
rootCmd.Flags().BoolVar(&frontendOnly, "frontend-only", false, "include only frontend file types and README.md")
rootCmd.Flags().BoolVar(&omitTest, "omit-test", false, "exclude test files (Go *_test.go, Java *Test.java) and strip #[cfg(test)] blocks from Rust")
rootCmd.Flags().BoolVar(&omitMd, "omit-md", false, "omit all .md files except README.md")
rootCmd.MarkPersistentFlagRequired("output")
}
@@ -132,6 +134,7 @@ func run(cmd *cobra.Command, args []string) error {
SkipFrontend: skipFrontend,
FrontendOnly: frontendOnly,
OmitTest: omitTest,
OmitMd: omitMd,
}
if singleFile != "" {