mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
simpler console command interface
This commit is contained in:
@@ -33,7 +33,7 @@ type Commander interface {
|
||||
FromArgs(args string, verbose bool) error // Load data from os arguments or flag.Args()
|
||||
Usage() string // usage message
|
||||
RpcMethod() string // Method which should be called remotely
|
||||
RpcParams(bool, bool) interface{} // Parameters to send out on rpc
|
||||
RpcParams(bool) interface{} // Parameters to send out on rpc
|
||||
PostprocessRpcParams() error // Corrects rpc parameters when needed
|
||||
RpcResult() interface{} // Only requirement is to have a String method to print on console
|
||||
ClientArgs() []string // for autocompletion
|
||||
@@ -88,3 +88,5 @@ type StringWrapper struct {
|
||||
type StringSliceWrapper struct {
|
||||
Items []string
|
||||
}
|
||||
|
||||
type EmptyWrapper struct{}
|
||||
|
||||
Reference in New Issue
Block a user