developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#777 closed enhancement (fixed)

Allow a CLI script to be dedicated to a specific action

Reported by: laurentj Owned by: laurentj
Priority: normal Milestone: jelix 1.1
Component: jelix:core request Version: 1.0RC1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Sometimes, we use a CLI script to only execute a specific action. However, we have to specify this action in the arguments of the script. We should have a way to no indicate this action. The action should be indicated as an argument of jCmdlineRequest for example.

Change History (2)

comment:1 Changed 11 years ago by laurentj

  • Documentation needed set
  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from Allow a CLI script to be attached to a specific action to Allow a CLI script to be dedicated to a specific action

done. r1220.

Now jCmdlineRequest accept a boolean as a parameter of its constructor. If it's true, the request will get always the default module and action given in the configuration, and won't read it from the command line.

Note: See TracTickets for help on using tickets.