Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a selfossctl CLI tool #1440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add a selfossctl CLI tool #1440

wants to merge 1 commit into from

Commits on Jul 9, 2024

  1. Add a selfossctl CLI tool

    This replaces the `cliupdate.php` script with a `symfony/console` based entry point:
    
        php bin/selfossctl update
    
    In the future we are going to introduce more commands.
    
    We are creating `LazyCommand`s manually because `Symfony\Component\Console\CommandLoader\ContainerCommandLoader` does not support lazy loading of commands.
    That appears to only be supported through Symfony’s DI container:
    https://symfony.com/blog/new-in-symfony-5-3-lazy-command-description
    Specifically, regular commands are getting turned to lazy ones in `Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass`.
    
    The individual commands cannot be more lazy so `selfossctl help update` will still connect to database.
    jtojnar committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    559a152 View commit details
    Browse the repository at this point in the history