Skip to content

Add config file autodiscovery #48

Description

@mintyPT

Problem

Config commands require users to pass the config path every time, even when working inside a project with a conventional clickclick.config.json. This adds friction to common workflows.

Proposal

Allow config commands to discover clickclick.config.json from the current directory upward:

clickclick config templates
clickclick config recipe release
clickclick config set social

Explicit config paths should continue to work.

Acceptance criteria

  • Config commands work without <config-file> when a config file is found in cwd or a parent directory.
  • Explicit config paths preserve current behavior.
  • Missing config files produce a clear INVALID_INPUT error with the searched filename.
  • Help text documents both modes.
  • Tests cover cwd config, parent-directory config, explicit path, and missing config.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cli-roadmapCLI roadmap improvementsworld-class-cliRoadmap work for making ClickClick a world-class non-AI image generation CLI

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions