Skip to content

switon-php/command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Switon Command Package

Command metadata, discovery, and inspection for Switon Framework.

Installation

composer require switon/command

Requirements: PHP 8.3+

Quick Start

use Switon\Command\Attribute\Hidden;
use Switon\Command\Attribute\Tool;

class ReportCommand
{
    #[Hidden]
    #[Tool('Returns JSON: report status by id.')]
    public function statusAction(string $id): array
    {
        return ['id' => $id, 'status' => 'ready'];
    }
}

Docs: https://docs.switon.dev/latest/command

License

MIT.

About

Shared command discovery and reflection metadata for CLI listings and AI tooling for Switon Framework

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages