Skip to content

feat: CD command#14

Merged
rayokamoto merged 5 commits intomainfrom
cd-command
Apr 17, 2026
Merged

feat: CD command#14
rayokamoto merged 5 commits intomainfrom
cd-command

Conversation

@xxori
Copy link
Copy Markdown
Collaborator

@xxori xxori commented Apr 17, 2026

Added aucpl cd, allowing changing directory to problem directories, or the root directory if no argument is passed. However, by default this will just print the directory. You must run eval $(aucpl shellinit) first (or add it to your zshrc or bashrc) to enable the actual directory-changing behaviour. This is because the CLI executable can't change the working directory of the parent.

xxori added 3 commits April 17, 2026 22:27
That way we dont have to quote the shell substitution.
@xxori xxori requested review from Copilot and rayokamoto and removed request for Copilot April 17, 2026 14:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds shell integration to support an aucpl cd subcommand that prints a directory (intended to be used by a shell wrapper to actually cd), and documents the workflow in the README.

Changes:

  • Add aucpl cd subcommand and wire it into the CLI command registry/dispatch.
  • Add aucpl shellinit subcommand that prints a shell function wrapper enabling aucpl cd to change the current shell directory.
  • Document the new cd usage and shell hook in README.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
crates/cli/src/main.rs Adds dispatch cases for cd and shellinit subcommands.
crates/cli/src/cli/mod.rs Registers cd and shellinit in the builtin subcommand list.
crates/cli/src/cli/cd.rs Implements aucpl cd directory resolution and printing.
crates/cli/src/cli/shellinit.rs Implements aucpl shellinit printing a shell wrapper function.
README.md Documents aucpl cd and how to enable shell integration via shellinit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/cli/src/cli/cd.rs
Comment thread crates/cli/src/cli/cd.rs Outdated
Comment thread README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rayokamoto rayokamoto merged commit 136d070 into main Apr 17, 2026
1 check passed
@rayokamoto rayokamoto deleted the cd-command branch April 17, 2026 15:38
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.

3 participants