Skip to content

Conversation

@Vabiel
Copy link
Contributor

@Vabiel Vabiel commented Nov 12, 2025

No description provided.

- Add check custom command
- Use enum instead of String
- Edit mode improve
- Add additional logs
- Add additional validation and checks
- Reduced the allowed values and ranges
Copy link
Contributor

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

This PR adds comprehensive custom commands support to the Alex CLI tool, allowing users to define and automate complex workflows through YAML configuration. The feature introduces 24 different action types including command execution, file operations, git checks, and archive management.

Key changes:

  • Custom command system with YAML-based configuration (alex_custom_commands.yaml)
  • Command management interface: list, add, show, edit, remove, check subcommands
  • 24 action types supporting shell commands, alex commands, Dart scripts, file/directory operations, git operations, platform checks, and archive operations
  • Variable substitution system using {{var}} or ${var} syntax
  • Security features including path validation, regex timeout detection, and file size limits

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pubspec.yaml Version bump to 1.10.0
lib/src/version.dart Updated package version constant to 1.10.0
lib/src/custom_commands/custom_command_executor.dart Core executor with 24 action types and security validations
lib/src/custom_commands/custom_command_config.dart YAML configuration loading and management
lib/src/custom_commands/custom_command_action.dart Action type definitions and YAML serialization
lib/src/custom_commands/custom_command_argument.dart Argument type definitions (options and flags)
lib/runner/alex_command_runner.dart Integration of custom commands into main runner
lib/commands/custom/*.dart Command management interface (7 command files)
alex_custom_commands.yaml.example Comprehensive example configuration with 15 examples
README.md Documentation for custom commands feature
CHANGELOG.md Release notes for version 1.10.0

@greymag greymag merged commit 92bdce8 into master Dec 1, 2025
1 check passed
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