Skip to content

[Feature]: --cwd DIR flag to start a session in a given directory #69

Description

@shauryagangrade

Problem

GCode always operates in the directory it was launched from. There's no way
to point it at another project without cd (and switching back), which
complicates editor/alias integration.

Proposed approach

  • Add gcode --cwd DIR (like -C in git) that os.chdirs before loading
    config/.gcoderc and tools, so the banner and all tools reflect DIR.
  • Resolve .gcoderc lookup against the chosen directory.

Where to look

Acceptance criteria

  • gcode --cwd /some/project shows /some/project in the banner and tool calls operate there.
  • .gcoderc in that directory is honored.

Difficulty

Low/Medium — good first issue.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions