Petals ESB CLI

Usage of the stdin redirection must be cleared

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.0
  • Fix Version/s: 2.0.0
  • Component/s: Command-line
  • Security Level: Public
  • Description:
    Hide

    Petals CLI can process command using several ways:

    • one command defined as argument on the command line,
    • several commands entered using the mode 'console',
    • several commands entered using the stdin that can be redirected (using the option '-s')

    Petals CLI can't process a file of commands directly.

    It should be more usable to have:

    • an option to execute the command on command line, as the system tool 'su': petals-cli.sh -c <command>
    • by default, the mode 'console' is displayed: petals-cli.sh
    • the file of commands to execute is set as argument on command line: petals-cli.sh <my-command-file>
    • to use the stdin as stream of commands, use the 'special' filename '-', that is the standard way (see the system tool 'tar'): petals-cli.sh - < my-file

    So the stding redirection will be clearer (see PETALSESBCLI-9)

    Show
    Petals CLI can process command using several ways:
    • one command defined as argument on the command line,
    • several commands entered using the mode 'console',
    • several commands entered using the stdin that can be redirected (using the option '-s')
    Petals CLI can't process a file of commands directly. It should be more usable to have:
    • an option to execute the command on command line, as the system tool 'su': petals-cli.sh -c <command>
    • by default, the mode 'console' is displayed: petals-cli.sh
    • the file of commands to execute is set as argument on command line: petals-cli.sh <my-command-file>
    • to use the stdin as stream of commands, use the 'special' filename '-', that is the standard way (see the system tool 'tar'): petals-cli.sh - < my-file
    So the stding redirection will be clearer (see PETALSESBCLI-9)
  • Environment:
    -

Issue Links

Activity

Christophe DENEUX made changes - Wed, 29 Feb 2012 - 18:34:17 +0100
Field Original Value New Value
Link This issue duplicates PETALSESBCLI-9 [ PETALSESBCLI-9 ]
Christophe DENEUX made changes - Wed, 29 Feb 2012 - 18:36:08 +0100
Priority Major [ 3 ]
Description Petals CLI can process command using several ways:
- one command defined as argument on the command line,
- several commands entered using the mode 'console',
- several commands entered using the stdin that can be redirected (using the option '-s')

Petals CLI can't process a file of commands directly.

It should be more usable to have:
- an option to execute the command on command line, as the tool 'su': {{petals-cli.sh -c <command>}}
- by default, the mode 'console' is displayed: {{petals-cli.sh}}
- the file of commands to execute is set as argument on command line: {{petals-cli.sh <my-command-file>}}
- to use the stdin as stream of commands, use the 'special' filename '-': {{petals-cli.sh - < my-file}}

So the stding redirection will be clearer (see PETALSESBCLI-9)
Petals CLI can process command using several ways:
- one command defined as argument on the command line,
- several commands entered using the mode 'console',
- several commands entered using the stdin that can be redirected (using the option '-s')

Petals CLI can't process a file of commands directly.

It should be more usable to have:
- an option to execute the command on command line, as the system tool 'su': {{petals-cli.sh -c <command>}}
- by default, the mode 'console' is displayed: {{petals-cli.sh}}
- the file of commands to execute is set as argument on command line: {{petals-cli.sh <my-command-file>}}
- to use the stdin as stream of commands, use the 'special' filename '-': {{petals-cli.sh - < my-file}}

So the stding redirection will be clearer (see PETALSESBCLI-9)
Christophe DENEUX made changes - Wed, 29 Feb 2012 - 20:39:43 +0100
Description Petals CLI can process command using several ways:
- one command defined as argument on the command line,
- several commands entered using the mode 'console',
- several commands entered using the stdin that can be redirected (using the option '-s')

Petals CLI can't process a file of commands directly.

It should be more usable to have:
- an option to execute the command on command line, as the system tool 'su': {{petals-cli.sh -c <command>}}
- by default, the mode 'console' is displayed: {{petals-cli.sh}}
- the file of commands to execute is set as argument on command line: {{petals-cli.sh <my-command-file>}}
- to use the stdin as stream of commands, use the 'special' filename '-': {{petals-cli.sh - < my-file}}

So the stding redirection will be clearer (see PETALSESBCLI-9)
Petals CLI can process command using several ways:
- one command defined as argument on the command line,
- several commands entered using the mode 'console',
- several commands entered using the stdin that can be redirected (using the option '-s')

Petals CLI can't process a file of commands directly.

It should be more usable to have:
- an option to execute the command on command line, as the system tool 'su': {{petals-cli.sh -c <command>}}
- by default, the mode 'console' is displayed: {{petals-cli.sh}}
- the file of commands to execute is set as argument on command line: {{petals-cli.sh <my-command-file>}}
- to use the stdin as stream of commands, use the 'special' filename '-', that is the standard way (see the system tool 'tar'): {{petals-cli.sh - < my-file}}

So the stding redirection will be clearer (see PETALSESBCLI-9)
Vincent Zurczak made changes - Thu, 1 Mar 2012 - 15:47:00 +0100
Comment [ I would say the exact opposite.
The console mode must remain the default one, unless the configuration file changes the default mode. ]
Christophe DENEUX made changes - Mon, 5 Mar 2012 - 16:25:13 +0100
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Mon, 5 Mar 2012 - 16:25:18 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Mon, 5 Mar 2012 - 16:29:31 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.0.1 [ 10332 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Mon, 5 Mar 2012 - 16:29:52 +0100
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Mon, 5 Mar 2012 - 17:04:15 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Mon, 5 Mar 2012 - 17:04:29 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Thu, 20 Sep 2012 - 16:56:47 +0200
Component/s Command-line [ 10239 ]

People

Dates

  • Created:
    Wed, 29 Feb 2012 - 18:22:54 +0100
    Updated:
    Thu, 20 Sep 2012 - 16:56:47 +0200
    Resolved:
    Mon, 5 Mar 2012 - 17:04:29 +0100