1    /* --COPYRIGHT--,EPL
     2     *  Copyright (c) 2016 Texas Instruments Incorporated
     3     *  All rights reserved. This program and the accompanying materials
     4     *  are made available under the terms of the Eclipse Public License v1.0
     5     *  which accompanies this distribution, and is available at
     6     *  http://www.eclipse.org/legal/epl-v10.html
     7     *
     8     *  Contributors:
     9     *      Texas Instruments - initial implementation
    10     *
    11     * --/COPYRIGHT--*/
    12    
    13    /*!
    14     *  ======== Main.xdc ========
    15     *  The xdc.rov.monserver delivers ROV views to clients through the standard
    16     *  IO. The clients access monserver through an ROV module embedded in the
    17     *  TI Cloud Agent, or through a WebSocket server.
    18     *
    19     *  Commands:
    20     *
    21     *  Start the server -
    22     *      xs xdc.rov.monserver -p <port_number>
    23     *
    24     *  Load an executable
    25     *      exec:<full path>
    26     *
    27     *  Get a list of Modules and Tabs
    28     *      list
    29     *
    30     *  Get a Module's View
    31     *      view:Task,Basic
    32     *
    33     *  Unload the executable
    34     *      clear
    35     *
    36     */
    37    metaonly module Main inherits xdc.tools.ICmd {
    38    
    39        override config String usage[] = [
    40            ' ',
    41            'Usage',
    42            '[-p]',
    43            '[--help]',
    44            ' ',
    45        ];
    46    
    47    instance:
    48    
    49        /*!
    50         *  ======== port ========
    51         *
    52         *  TCP port for the server
    53         *
    54         *  Only values from 1025 to 65535 are accepted.
    55         */
    56        @CommandOption('p')
    57        config UInt port = 8888;
    58    
    59    }