@@ -64,7 +64,6 @@ func runInteractive(o options) error {
6464 inName := tview .NewInputField ().SetText (o .name )
6565 inDescription := tview .NewInputField ().SetText (o .description )
6666 inPackageName := tview .NewInputField ().SetText (o .packageName )
67- inOutput := tview .NewInputField ().SetText (o .output )
6867 inBaseURL := tview .NewInputField ().SetText (o .baseURL )
6968
7069 // Small helper to pull current form values into options
@@ -93,7 +92,8 @@ func runInteractive(o options) error {
9392 o .packageName = sanitizePackage (strings .TrimSpace (inPackageName .GetText ()))
9493 // Base Dir is no longer user-editable in TUI; always mirror Artifact ID
9594 o .baseDir = o .artifactID
96- o .output = strings .TrimSpace (inOutput .GetText ())
95+ // Output zip name is fixed to <artifactId>.zip in TUI
96+ o .output = o .artifactID + ".zip"
9797 o .baseURL = strings .TrimSpace (inBaseURL .GetText ())
9898 // Dependencies
9999 o .dependencies = joinSelected (selectedDeps )
@@ -104,11 +104,10 @@ func runInteractive(o options) error {
104104 if o .packageName == "" {
105105 o .packageName = sanitizePackage (o .groupID + "." + o .artifactID )
106106 }
107- if o .output == "" {
108- o .output = o .artifactID + ".zip"
109- }
110- return o
111- }
107+ // Output is always <artifactId>.zip in TUI
108+ o .output = o .artifactID + ".zip"
109+ return o
110+ }
112111
113112 // Build form items
114113 form .AddFormItem (labeled (ddProjectType , "Project Type" ))
@@ -131,7 +130,6 @@ func runInteractive(o options) error {
131130 form .AddInputField ("Description" , o .description , 0 , nil , nil )
132131 form .AddFormItem (labeled (ddPackaging , "Packaging" ))
133132 form .AddInputField ("Package Name" , o .packageName , 0 , nil , nil )
134- form .AddInputField ("Output Zip" , o .output , 0 , nil , nil )
135133 form .AddInputField ("Base URL" , o .baseURL , 0 , nil , nil )
136134
137135 // Hook form items to variables so readOptions sees updated values
@@ -173,9 +171,8 @@ func runInteractive(o options) error {
173171 packageEdited = true
174172 }
175173 })
176- // Indices shift after removing "Base Dir" field
177- form .GetFormItem (10 ).(* tview.InputField ).SetChangedFunc (func (t string ) { inOutput .SetText (t ) })
178- form .GetFormItem (11 ).(* tview.InputField ).SetChangedFunc (func (t string ) { inBaseURL .SetText (t ) })
174+ // Indices shift after removing "Base Dir" and "Output Zip" fields
175+ form .GetFormItem (10 ).(* tview.InputField ).SetChangedFunc (func (t string ) { inBaseURL .SetText (t ) })
179176
180177 // Buttons
181178 var postRun func () error // set when Download/Extract is chosen
0 commit comments