Skip to content

feat(cli): add command-line interface - #22

Open
mostlyworking wants to merge 1 commit into
thesmallstar:mainfrom
mostlyworking:feat/add-cli
Open

feat(cli): add command-line interface#22
mostlyworking wants to merge 1 commit into
thesmallstar:mainfrom
mostlyworking:feat/add-cli

Conversation

@mostlyworking

@mostlyworking mostlyworking commented Jun 17, 2026

Copy link
Copy Markdown

Summary

Add a slackify-markdown CLI that converts Markdown to Slack mrkdwn from a file or standard input, with optional --output file writing and clean error reporting.

Implementation

  • New src/slackify_markdown/cli.py with run(), read_markdown()", and write_output()` helpers.
  • pyproject.toml entry point: slackify-markdown = slackify_markdown.cli:main.
  • Tests for stdin, file I/O, and missing input handling in tests/test_cli.py.

Test Plan

  • uv run pytest tests/test_cli.py passes locally (3/3).

Add a  console script that converts Markdown to Slack
mrkdwn from a file or stdin, with optional file output and clean error
reporting. Include unit tests for stdin, file I/O, and missing input.
@thesmallstar

Copy link
Copy Markdown
Owner

I’ll check this over the weekend. :)
Appreciate the contribution!

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.

2 participants