commands_test.go raw

   1  package cmds
   2  
   3  import (
   4  	"testing"
   5  )
   6  
   7  func TestCommands_GetAllCommands(t *testing.T) {
   8  	cm := GetCommands()
   9  	I.S(cm.GetAllCommands())
  10  }
  11  
  12  
  13  // GetCommands returns available subcommands in Parallelcoin Pod
  14  func GetCommands() (c Commands) {
  15  	c = Commands{
  16  		{Name: "gui", Title:
  17  		"ParallelCoin GUI Wallet/Miner/Explorer",
  18  			Entrypoint: func(c interface{}) error { return nil },
  19  		},
  20  		{Name: "version", Title:
  21  		"print version and exit",
  22  			Entrypoint: func(c interface{}) error { return nil },
  23  		},
  24  		{Name: "ctl", Title:
  25  		"command line wallet and chain RPC client",
  26  			Entrypoint: func(c interface{}) error { return nil },
  27  		},
  28  		{Name: "node", Title:
  29  		"ParallelCoin blockchain node",
  30  			Entrypoint: func(c interface{}) error { return nil },
  31  			Commands: []Command{
  32  				{Name: "dropaddrindex", Title:
  33  				"drop the address database index",
  34  					Entrypoint: func(c interface{}) error { return nil },
  35  				},
  36  				{Name: "droptxindex", Title:
  37  				"drop the transaction database index",
  38  					Entrypoint: func(c interface{}) error { return nil },
  39  				},
  40  				{Name: "dropcfindex", Title:
  41  				"drop the cfilter database index",
  42  					Entrypoint: func(c interface{}) error { return nil },
  43  				},
  44  				{Name: "dropindexes", Title:
  45  				"drop all of the indexes",
  46  					Entrypoint: func(c interface{}) error { return nil },
  47  				},
  48  				{Name: "resetchain", Title:
  49  				"deletes the current blockchain cache to force redownload",
  50  					Entrypoint: func(c interface{}) error { return nil },
  51  				},
  52  			},
  53  		},
  54  		{Name: "wallet", Title:
  55  		"run the wallet server (requires a chain node to function)",
  56  			Entrypoint: func(c interface{}) error { return nil },
  57  			Commands: []Command{
  58  				{Name: "drophistory", Title:
  59  				"reset the wallet transaction history",
  60  					Entrypoint: func(c interface{}) error { return nil },
  61  				},
  62  			},
  63  		},
  64  		{Name: "kopach", Title:
  65  		"standalone multicast miner for easy mining farm deployment",
  66  			Entrypoint: func(c interface{}) error { return nil },
  67  		},
  68  		{Name: "worker", Title:
  69  		"single thread worker process, normally started by kopach",
  70  			Entrypoint: func(c interface{}) error { return nil },
  71  		},
  72  	}
  73  	return
  74  }
  75  
  76