Home Forums Kamanja Forums Features & Releases New Command Line for Kamanja

This topic contains 2 replies, has 2 voices, and was last updated by  Dr. Hariharane S. Ramasamy 1 year, 6 months ago.

  • Author
    Posts
  • #15413 Reply
    We are proposing the following new command design for kamanja.
    kamanja action <options> where action and options are described below followed by old/new samples.
    <action> is one of following
      • add • update • get • remove • activate • deactivate • dump • load • watch • create • push • start • stop • version • list (new)

    Options

      -o / –object • message • model • container • type • function • concept • node • adapter • queue • cluster • metadata • engine

    -t / –tenantid <alpha numeric> -l / –lang

      • pmml • kpmml • java • scala

    -n / –name <name> -v / –ver nn.nn.nn -m / –mname <message name> -f / –file (load / add ) <filename> -t / –type • input • output • status • failed • config -v / –ver -d / –debug -h / –help Kamanja Old and New Comamnd Line Samples

    • kamanja watch input queue

     

    • kamanja watch –o queue –t input

     

     

    • kamanja add message filename

     

    • kamanja add –o message –f filename

     

     

    • kamanja get all messages

     

    • kamanja get –o message

     

     

    • kamanja update concepts input

     

    • kamanja –update –o concept –f <filename>

     

     

    • kamanja dump all nodes

     

    • kamanja dump –o node

     

     

    • kamanja add pmml input modelname namespace.name modelversion nn.nn.nn messagename namespace.name TENANTID <tenantID>

     

    • kamanja add –o pmml –f <filename> -n <moddelname> -m <messagename> -v nn.nn.nn –t <tenant id>

     

     

    • kamanja add model scala <input filename> TENANTID <tenant id>

     

    • kamanja add –o model –l scala –f <filename> -t <tenant id>

     

     

    • kamanja activate model <input filename>

     

    • kamanja activate –o model –f <filename>

     

     

    • kamanja get all containers

     

    • kamanja get -o container

     

     

  • #15779 Reply

    William
    Keymaster

    There are a lot of excess verbs both in our existing implementation as well your proposal. The modification I propose is that we reduce the metadata related verbs to CRUD (create, read, update, delete). Words like “dump” have proven to be ambiguous and “list” is just adding yet another word that users have to remember.

  • #15948 Reply

    Kamanja Command Line Options
    – Proposal

    kamanja <action> <options>

    Option

    Choices

    Notes

    <action>

     

    ·      add

    ·      update

    ·      get

    ·      remove

    ·      activate

    ·      deactivate

    ·      dump

    ·      load

    ·      watch

    ·      create

    ·      push

    ·      start

    ·      stop

    ·      version

    ·      list
    (new)

     

     

     

     -o /
    –object

    ·      message

    ·      model

    ·      container

    ·      type

    ·      function

    ·      concept

    ·      node

    ·      adapter

    ·      queue

    ·      cluster

    ·      metadata

    ·      engine

     

    -t / –tenantid

    <alpha numeric>

     

    -l / –lang

    ·      pmml

    ·      kpmml

    ·      java

    ·      scala

    (model)

    -n / –name

    -v / –ver

    -m / –mname

    <name>

    nn.nn.nn

    <message name>

    (pmml/kpmml model)

    -f / –file (load / add )

    <filename>

    (load / add)

    -t / –type

    ·      input

    ·      output

    ·      status

    ·      failed

    ·      config

    watch

    -v / –ver

     

    For start action , this represents verbose mode

     

    -d / –debug

     

    Debug mode

    -h / –help

     

    Usage

     

     

     

     

    Kamanja Old and New Comamnd Line Samples

     

    Old

    New (short version)

    Kamanja watch input queue

    Kamanja watch –o queue –t input

    Kamanja add message filename

    Kamanja add  –o message –f filename

    Kamanja get all messages

    Kamanja get  –o message

    Kamanja update concepts input

    Kamanja –update  –o concept –f <filename>

    Kamanja dump all nodes

    Kamanja dump  –o node

    Kamana add pmml input modelname namespace.name
    modelversion nn.nn.nn messagename namespace.name TENANTID <tenantID>

    Kamanja add –o pmml –f <filename> -n
    <moddelname> -m <messagename> -v nn.nn.nn –t <tenant id>

    Kamanja add model scala <input filename>
    TENANTID <tenant id>

    Kamanja add –o model –l scala –f
    <filename> -t <tenant id>

    Kamanja activate model <input filename>

    Kamanja activate –o model –f <filename>

    Kamanja get all containers

    Kamanja get -o container

     

     

     

    Software Framework

     

    Framework

    Notes

    Vote

    Jcommander

    http://jcommander.org/

     

    Argot-master

    https://github.com/bmc/argot

     

    joptsimple

    (https://pholser.github.io/jopt-simple/examples.html )

     

     

    Scala Simple Option Parsing

    https://github.com/scopt/scopt

     

    Scalaop

    Used
    in JTM

     

     

     

     

Reply To: New Command Line for Kamanja
Your information: