Skip to content

Commit

Permalink
Merge pull request cakephp#933 from Ayb3x/fix-code-line-overflows-con…
Browse files Browse the repository at this point in the history
…sole-and-shells

Fix code overflows in the Console and Shells section.
  • Loading branch information
markstory committed Dec 10, 2013
2 parents 0dfdbf0 + b9c385d commit d7bb7a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
21 changes: 13 additions & 8 deletions en/console-and-shells.rst
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,9 @@ make building subcommand parsers easier, as everything is an array::
'help' => __('Check the permissions between an ACO and ARO.'),
'parser' => array(
'description' => array(
__("Use this command to grant ACL permissions. Once executed, the ARO "),
__("specified (and its children, if any) will have ALLOW access to the"),
__("specified ACO action (and the ACO's children, if any).")
__("Use this command to grant ACL permissions. Once executed, the "),
__("ARO specified (and its children, if any) will have ALLOW access "),
__("to the specified ACO action (and the ACO's children, if any).")
),
'arguments' => array(
'aro' => array('help' => __('ARO to check.'), 'required' => true),
Expand All @@ -701,9 +701,9 @@ buildFromArray on its own, to build an option parser::
public function getOptionParser() {
return ConsoleOptionParser::buildFromArray(array(
'description' => array(
__("Use this command to grant ACL permissions. Once executed, the ARO "),
__("specified (and its children, if any) will have ALLOW access to the"),
__("specified ACO action (and the ACO's children, if any).")
__("Use this command to grant ACL permissions. Once executed, the "),
__("ARO specified (and its children, if any) will have ALLOW access "),
__("to the specified ACO action (and the ACO's children, if any).")
),
'arguments' => array(
'aro' => array('help' => __('ARO to check.'), 'required' => true),
Expand Down Expand Up @@ -753,7 +753,10 @@ would look like:
<command>bake fixture</command>
<description>Generate fixtures for use with the test suite. You can use
`bake fixture all` to bake all fixtures.</description>
<epilog>Omitting all arguments and options will enter into an interactive mode.</epilog>
<epilog>
Omitting all arguments and options will enter into an interactive
mode.
</epilog>
<subcommands/>
<options>
<option name="--help" short="-h" boolean="1">
Expand Down Expand Up @@ -939,7 +942,9 @@ Shell API

By formatting messages with style tags you can display styled output::

$this->out('<warning>This will remove data from the filesystems.</warning>');
$this->out(
'<warning>This will remove data from the filesystems.</warning>'
);

By default on \*nix systems ConsoleOutput objects default to colour output.
On windows systems, plain output is the default unless the ``ANSICON`` environment
Expand Down
5 changes: 3 additions & 2 deletions en/console-and-shells/cron-jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ trivial to setup, for example::
# * * * * * command to execute
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ \───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names)
# │ │ │ │ \───── day of week (0 - 6) (0 to 6 are Sunday to Saturday,
| | | | or use names)
# │ │ │ \────────── month (1 - 12)
# │ │ \─────────────── day of month (1 - 31)
# │ \──────────────────── hour (0 - 23)
# \───────────────────────── min (0 - 59)

You can see more info here: http://en.wikipedia.org/wiki/Cron

.. meta::
Expand Down

0 comments on commit d7bb7a2

Please sign in to comment.