Estimated Reading time: 2 minutes
|
Last modified: 2021-12-31, 11:27:28 amlua-module
Usage: oredge lua-module ACTION [OPTIONS]
ACTION:
    create
    list
    show
    modify
    delete
    help
GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.
Create Lua-module
Usage: oredge lua-module create [OPTIONS]
OPTIONS:
    --name string                      name.
    --code string                      code.
GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.
Example
# oredge lua-module create --name test --code "..."
ID: 1
List Lua-module
Usage: oredge lua-module list [OPTIONS]
OPTIONS:
    --page integer                     page, 1(default).
    --page-size integer                page size, 20(default).
GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.
Example
# oredge lua-module list
ID    NAME    CREATE TIME            MODIFY TIME
1     test    2021-06-01 00:12:22    2021-06-01 00:12:22
Show Lua-module
Usage: oredge lua-module show [id] [OPTIONS]
OPTIONS:
    --id integer                       id.
GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.
Example
# bin/oredge lua-module show 1
ID         : 1
NAME       : test
CREATE TIME: 2021-07-16 00:37:05
MODIFY TIME: 2021-07-16 00:37:05
CODE       :
Modify Lua-module
Usage: oredge lua-module modify [id] [OPTIONS]
OPTIONS:
    --id integer                       id.
    --name string                      name.
    --code string                      code.
GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.
Example
# oredge lua-module modify 21 --name "test"
OK
Delete Lua-module
Usage: oredge lua-module delete [id] [OPTIONS]
OPTIONS:
    --id integer                       id.
GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.
Example
# oredge lua-module delete 21
OK