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)

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

1 participant