Skip to content

[TASK] Rename commands to shortcuts #116

Closed

Description

@edenreich

Summary

Currently there is /config and some other chat commands. I think we first need to rename those to shortcuts to avoid confusion with the actual infer cmd (commands).

Acceptance Criteria

  • "/config" is a shortcut not a command
  • Directory internal/commands is renamed to internal/shortcuts
  • Docs are updated

Activity

  1. added
    enhancement
    on Aug 25, 2025
  2. changed the issue type fromtoon Aug 25, 2025
  3. added
    refactor
    on Aug 25, 2025
  4. edenreich commented on Aug 25, 2025

    @edenreich
    ContributorAuthor

    @claude Can you work on this?

  5. claude commented on Aug 25, 2025

    @claude
    Contributor

    Claude finished @edenreich's task —— View job • claude/issue-116-20250825-1024 • [Create PR ➔](https://github.com/inference-gateway/cli/compare/main...claude/issue-116-20250825-1024?quick_pull=1&title=Issue%20%23116%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23116%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Renaming commands to shortcuts - ✅ COMPLETED

    Successfully renamed commands to shortcuts to avoid confusion with the actual infer CLI commands.

    ✅ All Acceptance Criteria Met:

    • "/config" is a shortcut not a command - Updated throughout the codebase
    • Directory internal/commands is renamed to internal/shortcuts - Completed with full refactoring
    • Docs are updated - User-facing help text updated from "for commands" to "for shortcuts"

    🔧 Technical Changes Completed:

    • Created new internal/shortcuts/ directory with 4 files
    • Updated all type definitions (Command → Shortcut, CommandResult → ShortcutResult)
    • Updated all variable names (commandRegistry → shortcutRegistry)
    • Updated all function names (GetSelectedCommand → GetSelectedShortcut)
    • Updated all constructor names (NewConfigCommand → NewConfigShortcut)
    • Updated import statements across 14 Go files
    • Updated interface definitions and mock implementations
    • Updated user-facing help text and descriptions
    • Removed old internal/commands directory
    • All code compiles successfully
    • Committed changes to the repository

    🎯 Outcome:

    The /config and other chat shortcuts are now properly distinguished from CLI commands like infer config. This eliminates confusion between:

    • CLI commands: infer config, infer status, etc. (actual command-line interface)
    • Chat shortcuts: /config, /help, /clear, etc. (interactive chat interface)

    The rename is complete and the codebase is ready for use.

    📝 Commits Made:


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

    enhancementrefactor

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions