-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to skip messages when a user joins/leaves a channel #212
Conversation
@click.option("--template", default=None, type=click.File('r'), help="Custom single file export template") | ||
@click.argument('archive_dir') | ||
@click.argument('archive') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this rename is to have the same config['archive'] name as main.py
. This way the same config variable can be used in the Reader class.
@@ -112,27 +114,3 @@ def create_archive_info(filepath, extracted_path, archive_sha=None): | |||
s = json.dumps(archive_info, ensure_ascii=False) | |||
s = to_unicode(s) | |||
f.write(s) | |||
|
|||
|
|||
def get_export_info(archive_name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was only used by cli.py. At the same time the workspace name is also computed in Reader()
@hfaran merge conflict got fixed. |
Add feature flag to hide messages when a user joins/leaves a channel.
This PR also changes how config options handed over by click. Instead of having to add each new arg in a list, it automatically hands them over in an config dict. As result the way how these configs are set had to be changes where they are used.
This PR also moves the zip file extraction to the Reader class. The reason is that cli.py and main.py had separate extract options. At the same time, cli.py used the unzip function to generate the slack name, which also needs to be computed in the Reader class itself.
PR resolves also #191