summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2026-01-30 18:51:54 -0700
committermo khan <mo@mokhan.ca>2026-01-30 18:51:54 -0700
commit147ad78d281830d2d55e79604f631e6ed3f3a8f1 (patch)
tree15bb91182a2247e0010dd99085216f9c5d775ff7 /cmd
parent40fa78b58bb761c6e67b3e1622b3f56c12d81733 (diff)
refactor: remove --theme --preview-thems --minify and --gzip flags
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gitmal/main.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/cmd/gitmal/main.go b/cmd/gitmal/main.go
index 0c29a32..4652477 100644
--- a/cmd/gitmal/main.go
+++ b/cmd/gitmal/main.go
@@ -20,10 +20,6 @@ var (
flagOutput string
flagBranches string
flagDefaultBranch string
- flagTheme string
- flagPreviewThemes bool
- flagMinify bool
- flagGzip bool
)
func main() {
@@ -54,10 +50,6 @@ func main() {
flag.StringVar(&flagOutput, "output", "output", "Output directory for generated HTML files")
flag.StringVar(&flagBranches, "branches", "", "Regex for branches to include")
flag.StringVar(&flagDefaultBranch, "default-branch", "", "Default branch to use (autodetect master or main)")
- flag.StringVar(&flagTheme, "theme", "github", "Style theme")
- flag.BoolVar(&flagPreviewThemes, "preview-themes", false, "Preview available themes")
- flag.BoolVar(&flagMinify, "minify", false, "Minify all generated HTML files")
- flag.BoolVar(&flagGzip, "gzip", false, "Compress all generated HTML files")
flag.Usage = usage
flag.Parse()
@@ -70,11 +62,6 @@ func main() {
panic("Multiple repos not supported yet")
}
- if flagPreviewThemes {
- generator.PreviewThemes()
- os.Exit(0)
- }
-
outputDir, err := filepath.Abs(flagOutput)
if err != nil {
panic(err)
@@ -91,11 +78,6 @@ func main() {
flagName = strings.TrimSuffix(flagName, ".git")
}
- themeColor, ok := generator.ThemeStyles[flagTheme]
- if !ok {
- panic("Invalid theme: " + flagTheme)
- }
-
branchesFilter, err := regexp.Compile(flagBranches)
if err != nil {
panic(err)
@@ -138,8 +120,6 @@ func main() {
Name: flagName,
RepoDir: input,
OutputDir: outputDir,
- Style: flagTheme,
- Dark: themeColor == "dark",
DefaultRef: git.NewRef(flagDefaultBranch),
}
@@ -252,12 +232,6 @@ func main() {
}
}
- if flagMinify || flagGzip {
- generator.Echo("> post-processing HTML...")
- if err := generator.PostProcessHTML(params.OutputDir, flagMinify, flagGzip); err != nil {
- panic(err)
- }
- }
}
func usage() {