Skip to content

Commit

Permalink
use yeswicli instead of includes/command/console
Browse files Browse the repository at this point in the history
  • Loading branch information
seballot committed Apr 25, 2024
1 parent f4897c4 commit 349090f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Expand Up @@ -5,5 +5,5 @@ source /home/yeswiki/.nvm/nvm.sh
nvm use 20
corepack enable
yarn install
php includes/commands/console migrate
./yeswicli migrate
php-fpm
2 changes: 1 addition & 1 deletion includes/commands/ArchiveCommand.php
Expand Up @@ -25,7 +25,7 @@ protected function configure()
{
$this
->setName('core:archive')
// the short description shown while running "php includes/commands/console list"
// the short description shown while running "./yeswicli list"
->setDescription('Create archive of the YesWiki.')

// the full command description shown when running the command with
Expand Down
2 changes: 1 addition & 1 deletion includes/commands/DbCommand.php
Expand Up @@ -30,7 +30,7 @@ protected function configure()
{
$this
->setName('core:exportdb')
// the short description shown while running "php includes/commands/console list"
// the short description shown while running "./yeswicli list"
->setDescription('Manage database of the YesWiki.')

// the full command description shown when running the command with
Expand Down
2 changes: 1 addition & 1 deletion includes/commands/TestConsoleServiceCommand.php
Expand Up @@ -23,7 +23,7 @@ protected function configure()
{
$this
->setName('core:testconsoleservice')
// the short description shown while running "php includes/commands/console list"
// the short description shown while running "./yeswicli list"
->setDescription('Offer tests for ConsoleService.')

// the full command description shown when running the command with
Expand Down
2 changes: 1 addition & 1 deletion migrations/README.md
Expand Up @@ -6,4 +6,4 @@ A migration is only run once

## Create a new migration

`php includes/commands/console generate:migration YourMigrationName`
`./yeswicli generate:migration YourMigrationName`
6 changes: 3 additions & 3 deletions tools/helloworld/commands/HelloCommand.php
Expand Up @@ -22,16 +22,16 @@ public function __construct(Wiki &$wiki)
protected function configure()
{
$this
// the name of the command : php includes/commands/console helloworld:hello"
// the name of the command : ./yeswicli helloworld:hello"
->setName('helloworld:hello')
// the short description shown while running "php includes/commands/console list"
// the short description shown while running "./yeswicli list"
->setDescription('Display message "Hello !".')

// the full command description shown when running the command with
// the "--help" option
->setHelp("This command display the message \"Hello !\" with options for uppercase of add a username.\n" .
"The argument \"username\" can be used to add a username. Example : \n" .
"Command line'php includes/commands/console helloworld:hello \"John Smith\"' gives \"Hello John Smith !\"")
"Command line'./yeswicli helloworld:hello \"John Smith\"' gives \"Hello John Smith !\"")

// add argument for username
// second parameter could be InputArgument::OPTIONAL <=> null, InputArgument::REQUIRED, InputArgument::IS_ARRAY
Expand Down

0 comments on commit 349090f

Please sign in to comment.