Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Meeting notes] 3/28 - cmd3: a new alternative shell #113

Open
lee212 opened this issue Mar 28, 2013 · 0 comments
Open

[Meeting notes] 3/28 - cmd3: a new alternative shell #113

lee212 opened this issue Mar 28, 2013 · 0 comments

Comments

@lee212
Copy link
Contributor

lee212 commented Mar 28, 2013

We agreed to move our development to cmd3 tool from cmd2. Cloud Metrics will provide cmd3 plugins to work with cmd3.

In this meeting, we defined certain activities to implement:

  • Three ways of using cmd3: cmd shell, script file input, and unix shell command along with parameters.
    Example 1. cmd shell
 $ cm

       FutureGrid - Cloud Mesh Shell
 ------------------------------------------------------
 ...
 cm> _

Example 2. script file

 $ cat scriptfile.txt
 ### Example of cmd3 command script
 load metric
 ...
 analyze -Y 2013 -m runtime
 chart -t line -o report.html
 ...

 $ cm -f scriptfile.txt
 ... metric plugin loaded ...
 ...
 Analyzing runtime metrics for 2013...
 ...
 line chart saved on report.html

Example 3. unix shell command along with parameters

 $ cm metric -Y 2013 -m runtime -o report.html
 ... metric plugin loaded ...
  Analyzing runtime metrics for 2013...
 ...
 line chart saved on report.html
  • Naming consistency
    • root (master) single command: cm
    • sub commands for plugins:
    • sub commands are just aliases of cm command with plugins.
    • Example 4. plugin for cloud metrics
      alias "fg-metric"="cm metric $@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant