serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

[#32] Add CLI options parsing #34

Closed YuriRomanowski closed 1 year ago

YuriRomanowski commented 1 year ago

Description

Problem: Currently, our program has no CLI infrastructure with program description, helps etc. Also, there is no way to dump the default config with useful explanations.

Solution: Add optparse-applicative CLI parser that supports the default mode (run the Slack timezone bot) and also additional dump-config command.

Related issue(s)

Fixed #32

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)

Martoon-00 commented 1 year ago

Hm, interesting indentation in the commit message.

If you are planning to use it further, I'd recommend writing in Slack (probably into #engeneering channel) and ask how much is it worthy to do so. I think eventually we must use a uniform approach, and I actually see some pros in going with the indentation.

YuriRomanowski commented 1 year ago

Hm, interesting indentation in the commit message.

If you are planning to use it further, I'd recommend writing in Slack (probably into #engeneering channel) and ask how much is it worthy to do so. I think eventually we must use a uniform approach, and I actually see some pros in going with the indentation.

Hm, that was just a strange fluctuation :smile: I'll reword this commit