GetTxCmd returns the transaction commands for this module
()
| 17 | |
| 18 | // GetTxCmd returns the transaction commands for this module |
| 19 | func GetTxCmd() *cobra.Command { |
| 20 | cmd := &cobra.Command{ |
| 21 | Use: types.ModuleName, |
| 22 | Short: "Margin transactions sub-commands", |
| 23 | } |
| 24 | cmd.AddCommand( |
| 25 | GetOpenCmd(), |
| 26 | GetCloseCmd(), |
| 27 | GetForceCloseCmd(), |
| 28 | GetUpdateParamsCmd(), |
| 29 | GetUpdatePoolsCmd(), |
| 30 | GetUpdateRowanCollateralCmd(), |
| 31 | GetDewhitelistCmd(), |
| 32 | GetWhitelistCmd(), |
| 33 | GetAdminCloseCmd(), |
| 34 | GetAdminCloseAllCmd(), |
| 35 | ) |
| 36 | return cmd |
| 37 | } |
| 38 | |
| 39 | func GetOpenCmd() *cobra.Command { |
| 40 | cmd := &cobra.Command{ |
no test coverage detected