Skip to content

Settings: configurable storage location for request data #7

@syncended

Description

@syncended

Goal

Introduce a settings layer for yapi. The first setting to support: where request data (saved requests, history, etc.) is stored on disk.

Scope

  • Settings mechanism (file format + load/save) — pick a sensible default location (e.g. ~/.config/yapi/ on Unix).
  • Setting: storage path for request-related data.
    • Default value when unset.
    • Override via config file.
    • Override via CLI flag / env var (TBD which).
  • Apply the configured path consistently across CLI and TUI.

Out of scope (later issues)

  • Other settings (theme, keybindings, proxies, etc.) — add as separate issues when needed.
  • UI screen for editing settings inside the TUI.

Acceptance criteria

  • User can change where request data is saved without editing source code.
  • Both CLI and TUI honor the configured path.
  • Default behavior works out of the box with no config file present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions