-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
351 additions
and
237 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package base | ||
|
||
import ( | ||
"fmt" | ||
"strings" | ||
) | ||
|
||
func YesNo(message string) bool { | ||
for { | ||
fmt.Print(message, "? (y/N) ") | ||
var resp string | ||
fmt.Scanln(&resp) | ||
resp = strings.TrimSpace(resp) | ||
if len(resp) > 0 { | ||
switch strings.ToLower(resp)[0] { | ||
case 'y': | ||
return true | ||
case 'n': | ||
return false | ||
} | ||
} | ||
fmt.Println("Please answer yes or no and press Enter or Return.") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# v2.3.0 | ||
|
||
Breaking changes: | ||
- legacy command line interface moved under "v1" command, so if you need to | ||
use the old CLI, instead of `./slackdump`, run `./slackdump v1`. The | ||
legacy CLI will be phased out: deprecated in v2.4.0, and removed in v2.5.0. | ||
- download flag is set to "true" by default. | ||
|
||
New features: | ||
- Completely rewritten CLI, based on `go` command source code (see | ||
[Licenses](#licenses)). | ||
- Default API limits can be overridden with configuration file (use | ||
`-config <file>`). | ||
- Slack Workspaces: | ||
- Slackdump remembers credentials for multiple Slack Workspaces; | ||
- It is possible to set the "current" Workspace; | ||
- "Current" workspace can be overridden by providing the "-w \<name\>" flag. | ||
|
||
Changes | ||
- Default output location (BASE_LOC environment variable), if not set by the | ||
user, defaults to the ZIP file "slackdump_YYYYMMDD_HHmmSS.zip", where | ||
YYYYMMDD is the current date (for example 20221103) and HHmmSS is the current | ||
time with seconds (for example 185803). | ||
|
||
## Licenses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.