Skip to content

feat: add config command to show config path - #117

Open
devKobe24 wants to merge 1 commit into
hackmdio:developfrom
devKobe24:feat/config-command
Open

devKobe24 wants to merge 1 commit into
hackmdio:developfrom
devKobe24:feat/config-command

Conversation

@devKobe24

Copy link
Copy Markdown

Closes #45

Summary

Adds a config command that prints the config file path and current settings.
The access token value is never printed — only whether it is set.

Usage

$ hackmd-cli config
Config file: /Users/you/.hackmd/config.json
hackmdAPIEndpointURL: https://api.hackmd.io/v1
accessToken: (set)

$ hackmd-cli config --path
/Users/you/.hackmd/config.json

Tests

  • Added test/config-command.test.ts, including a check that the token value is never printed
  • pnpm test: all passing, lint clean (Node 24)

@devKobe24

Copy link
Copy Markdown
Author

@EastSun5566 Friendly ping 🙂 Happy to make any changes if something needs adjusting.

@EastSun5566
EastSun5566 self-requested a review October 14, 2026 13:42

@EastSun5566 EastSun5566 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devKobe24 Sorry for the late reply. Thanks! This looks good to me. But we have an internal process to release, so we may need to wait a little bit. cc @Yukaii

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.

Config command

2 participants