Skip to content
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

Feat: Add --channel-types cli argument #27

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

ehrhart
Copy link
Contributor

@ehrhart ehrhart commented Feb 16, 2023

This adds an extra cli argument --channel-types which allows to specify which channel types to download messages from, thus bypassing the prompt dialog.

Example of usage:

yarn cli --automatic --channel-types public_channel,private_channel

ehrhart and others added 2 commits February 16, 2023 14:55
This adds an extra cli argument --channel-type which allows to specify which channel types to download messages from, thus bypassing the prompt dialog
@ehrhart ehrhart changed the title Feat: Add --channel-type cli argument Feat: Add --channel-types cli argument Feb 16, 2023
@felixrieseberg
Copy link
Owner

Oh nice, thank you! Could you add a usage guide because I presume it doesn't handle spaces, right?

@ehrhart
Copy link
Contributor Author

ehrhart commented Feb 17, 2023

Something like this?

--channel-types             Comma-separated list of channel types to fetch messages from.
                            Example: --channel-types public_channel,private_channel,mpim,im

Also we might want to consider using a cli arguments parsing library such as yargs or commander in the future.

@felixrieseberg
Copy link
Owner

Thank you!

@felixrieseberg felixrieseberg merged commit a47ab54 into felixrieseberg:main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants