1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-18 03:50:25 +01:00

Added raw-dir option

This option can be used to debug slack API responses - if set,
slack-backup will dump all of the data as a JSON in provided direcotry.
This commit is contained in:
2018-07-16 16:11:23 +02:00
parent db8527e9af
commit 93b0bc2dd7
5 changed files with 46 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ class Config(object):
sections = {'common': ['channels', 'database', 'quiet', 'verbose'],
'fetch': ['user', 'password', 'team', 'token',
'url_file_to_attachment'],
'url_file_to_attachment', 'raw_dir'],
'generate': ['output', 'format', 'theme']}
def __init__(self):
@@ -38,7 +38,8 @@ class Config(object):
'output': None,
'format': None,
'theme': None,
'url_file_to_attachment': False}
'url_file_to_attachment': False,
'raw_dir': None}
# This message supposed to be displayed in INFO level. During the time
# of running the code where it should be displayed there is no
# complete information about logging level. Displaying message is