Skip to content

Config command #24

@pasogott

Description

@pasogott

Command: whcli config

# View all config
whcli config

# Get specific value
whcli config get notifications.telegram.chatId

# Set value
whcli config set defaultFormat json
whcli config set defaultRows 50

# Reset to defaults
whcli config reset

Config File

~/.whcli/config.json:

{
  "defaultFormat": "table",
  "defaultRows": 30,
  "notifications": {
    "telegram": {
      "botToken": "...",
      "chatId": "..."
    },
    "desktop": true
  },
  "colors": true
}

Implementation

Use conf package for config management.

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-4Phase 4: Advanced

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions