Skip to content

Commit

Permalink
Merge pull request #154 from rusq/i153-survey-export-token
Browse files Browse the repository at this point in the history
#153: add an export token to the UI
  • Loading branch information
rusq authored Oct 10, 2022
2 parents b28f7bf + fe6ed06 commit e1783d6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions cmd/slackdump/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ func surveyList(p *params) error {
func surveyExport(p *params) error {
var err error

p.appCfg.ExportType, err = questExportType()
if err != nil {
return err
}

p.appCfg.ExportName, err = ui.StringRequire(
"Output directory or ZIP file: ",
"Enter the output directory or ZIP file name. Add \".zip\" extension to save to a zip file.\nFor Mattermost, zip file is recommended.",
Expand All @@ -147,6 +142,17 @@ func surveyExport(p *params) error {
if err != nil {
return err
}
if p.appCfg.Options.DumpFiles {
p.appCfg.ExportType, err = questExportType()
if err != nil {
return err
}
p.appCfg.ExportToken, err = ui.String("Append export token (leave empty if none)", "export token will be appended to all file URLs.")
if err != nil {
return err
}
}

return nil
}

Expand Down

0 comments on commit e1783d6

Please sign in to comment.