Skip to content

Commit

Permalink
Merge pull request #176 from rusq/i175-all-chans
Browse files Browse the repository at this point in the history
Allow for literal "all" for all channels in export scope selection
  • Loading branch information
rusq authored Dec 26, 2022
2 parents 2ce8ba0 + 7156cbc commit aed101a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/slackdump/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func surveyExport(p *params) error {
if err != nil {
return err
}
p.appCfg.Input.List, err = questConversationList("Conversations to export (leave empty for ALL): ")
p.appCfg.Input.List, err = questConversationList("Conversations to export (leave empty or type ALL for full export): ")
if err != nil {
return err
}
Expand Down Expand Up @@ -196,7 +196,7 @@ func questConversationList(msg string) (*structures.EntityList, error) {
if err != nil {
return nil, err
}
if chanStr == "" {
if chanStr == "" || strings.ToLower(chanStr) == "all" {
return new(structures.EntityList), nil
}
if el, err := structures.MakeEntityList(strings.Split(chanStr, " ")); err != nil {
Expand Down

0 comments on commit aed101a

Please sign in to comment.