You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2007/11/30 18:12:43 UTC

[jira] Created: (GSHELL-86) command groups in help screen

command groups in help screen
-----------------------------

                 Key: GSHELL-86
                 URL: https://issues.apache.org/jira/browse/GSHELL-86
             Project: GShell
          Issue Type: Improvement
      Security Level: public (Regular issues)
            Reporter: Jarek Gawor
            Assignee: Jason Dillon


The help screen shows the following:

  ...
  /deploy

  list-plugins          Install plugins into a geronimo server
  connect               Connect to a Geronimo server
  disconnect            Disconnect from a Geronimo server
  ..

which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:

  ...
  deploy/

  list-plugins          Install plugins into a geronimo server
  connect               Connect to a Geronimo server
  disconnect            Disconnect from a Geronimo server
  ..


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-86) command groups in help screen

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551828 ] 

Jason Dillon commented on GSHELL-86:
------------------------------------

So the point of the path and tree muck in GShell is to facilitate this _sub-shell_ idea, so that a _sub-shell_ is simply a namespace for commands.  And when you enter the name of a path (which exists) then the current path is set to that path, changing the name-space and effectively entering that sub-shell.

BTW, you are free to re-implement the {{help}} command and bind in your own version that behaves better for your application in the layout :-)

> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-86) command groups in help screen

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551837 ] 

Guillaume Nodet commented on GSHELL-86:
---------------------------------------

{quote}
My point is though that I've been working insolation with-out input for a while on this stuff, so some of the ways GShell works are just based on my own preferences and whatever. I do want to make GShell as easy to use a possible and make it be able to do just about anything that someone wants in a cli app.
{quote}

Well, that's the reason why I explained what we did in ServiceMix, though I don't want to destabilize gshell at the moment, so we did whatever we needed in ServiceMix (just very small changes in gshell where absolutely needed).

The main problem we have is that we are working in an OSGi environment where commands are dynamically discovered, so the idea of having a layout described by an xml file just does not work for us.  What we came up with is having a single class implementing the CommandRegistry and the LayoutManager.  The layout is updated dynamically when commands are registered.   

> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GSHELL-86) command groups in help screen

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon updated GSHELL-86:
-------------------------------

    Fix Version/s: 1.0-alpha-1
         Assignee:     (was: Jason Dillon)

> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-86) command groups in help screen

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551830 ] 

Jason Dillon commented on GSHELL-86:
------------------------------------

Sooo... the only significant difference, is that instead of:

{noformat}
obr info
{noformat}

You would:

{noformat}
obr/info
{noformat}

Or if you like:

{noformat}
obr
info
{noformat}

But... please *do* keep the thoughts and ideas coming in!!!  GShell ASIS is basically what I had been dreaming about since the JBucks 3.x days w/Twiddle (and what I really wanted to have in G 1.0, but eh...).

My point is though that I've been working insolation with-out input for a while on this stuff, so some of the ways GShell works are just based on my own preferences and whatever.  I do want to make GShell as *easy* to use a possible and make it be able to do *just about anything* that someone wants in a cli app.

So... lets see if we can make it work for everyone :-)


> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-86) command groups in help screen

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548070 ] 

Jason Dillon commented on GSHELL-86:
------------------------------------

I really need to fix the handling of {{/}} and {{../}} but ya, for the initial release since that doesn't work I'll change the help page (which is horrible ATM, but its not so important to fix for this release).

> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>            Assignee: Jason Dillon
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-86) command groups in help screen

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550563 ] 

Guillaume Nodet commented on GSHELL-86:
---------------------------------------

FYI, we are using things in a somewhat different way in ServiceMix.
Commands are grouped into subcommands, so instead of listing all the commands, we only list the first level.
  
{noformat}
gnodet@Guillaume-Nodets-MacPro.local:/> ?

For information about ServiceMix, visit:
    http://servicemix.apache.org 

Available commands:
  .                     Alias to: source
  ?                     Alias to: help
  clear                 Clear the terminal screen
  create                Create a new ServiceMix instance
  echo                  Echo or print arguments to STDOUT
  exit                  Exit the (sub)shell
  help                  Show command help
  set                   Set a variable
  source                Load a file/url into the current shell
  unset                 Unset a variable

Available shells:
  obr
  osgi
  remote

gnodet@Guillaume-Nodets-MacPro.local:/> ? obr

Available commands in obr:
  addUrl                Add a list of repository URLs to the repository service
  deploy                Deploy
  info                  Display the meta-data for the specified bundles.
  list                  List
  listUrl               Display the repository URLs currently associated with the repository service.
  removeUrl             Remove a list of repository URLs from the repository service
  source                Source
  start                 Start

gnodet@Guillaume-Nodets-MacPro.local:/> ? obr info

Command info
   Display the meta-data for the specified bundles.
obr:info
 -- 

  -h (--help)    Display this help message


gnodet@Guillaume-Nodets-MacPro.local:/> 
{noformat}


> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GSHELL-86) command groups in help screen

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551839 ] 

Jason Dillon commented on GSHELL-86:
------------------------------------

Understood... and thank you :-)

So for alpha-1 we are basically sorted only the smallest changes are going in.  Hopefully will release in a day or so... er I mean start a vote in a day or so.

 * * *

I will start to write up some roadmap documentation, kinda like a brain-dump for what I'm thinking, maybe some crude UML or sketches too... so that we can have some discussion around whats going to change for alpha-2... and how it will keep working for your needs, Geronimos needs... and still make me feel happy that GShell will dominate the universe in due time :-)

> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GSHELL-86) command groups in help screen

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GSHELL-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon closed GSHELL-86.
------------------------------

    Resolution: Fixed

Okay, I've stripped of the leading "/"... but really this command needs a healthy looking  at and a swift kick in the rear.  I think with the next release the path stuff (or sub-shell) whatever it be, should be better sorted out and we can fix this command then.

> command groups in help screen
> -----------------------------
>
>                 Key: GSHELL-86
>                 URL: https://issues.apache.org/jira/browse/GSHELL-86
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>             Fix For: 1.0-alpha-1
>
>
> The help screen shows the following:
>   ...
>   /deploy
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..
> which I would interpret that I need to type "/deploy/connect" to execute the command. But that does not work but "deploy/connect" works. So I would propose updating the help screen to show the slash at the end of the group name instead of the front. e.g.:
>   ...
>   deploy/
>   list-plugins          Install plugins into a geronimo server
>   connect               Connect to a Geronimo server
>   disconnect            Disconnect from a Geronimo server
>   ..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.