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

Introducing the FOSSBilling CLI #1021

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Introducing the FOSSBilling CLI #1021

wants to merge 7 commits into from

Conversation

evrifaessa
Copy link
Member

@evrifaessa evrifaessa commented Mar 29, 2023

This PR starts working on a basic console application made with Symfony's console component.

I've also added three commands to begin with:

  • cache:clear
  • cron:run
  • system:version
  • system:releasenotes
  • theme:list

Keeping this as a draft while I'm still experimenting with it. Reviews and suggestions appreciated.

It's pretty easy to write commands. Modules now can have a /Commands subdirectory. I'll also update the example modules once this is merged.

The component also has great helpers for tables, progress bars and asking for user information.

image
image

@evrifaessa evrifaessa self-assigned this Mar 29, 2023
@evrifaessa
Copy link
Member Author

evrifaessa commented Mar 29, 2023

In the future, I might implement commands for modules. Modules would be able to define their own commands. Would be great for extensibility and maintainability.

Edit: In fact it would be better to do it before merging this and creating a whole new directory under /library.
Edit2: Done.

@evrifaessa evrifaessa added the enhancement New feature or request label Mar 29, 2023
@evrifaessa
Copy link
Member Author

Here is how the tables look. They can also be tweaked to look different:

image

@BelleNottelling
Copy link
Member

@evrifaessa any plans to get this to a mergeable state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
composer enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants