mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	远程升级API节点(部分实现)
This commit is contained in:
		@@ -26,8 +26,12 @@ func main() {
 | 
			
		||||
	var app = apps.NewAppCmd()
 | 
			
		||||
	app.Version(teaconst.Version)
 | 
			
		||||
	app.Product(teaconst.ProductName)
 | 
			
		||||
	app.Usage(teaconst.ProcessName + " [start|stop|restart|setup|upgrade|service|daemon|issues]")
 | 
			
		||||
	app.Usage(teaconst.ProcessName + " [-h|-v|start|stop|restart|setup|upgrade|service|daemon|issues]")
 | 
			
		||||
 | 
			
		||||
	// 短版本号
 | 
			
		||||
	app.On("-V", func() {
 | 
			
		||||
		_, _ = os.Stdout.WriteString(teaconst.Version)
 | 
			
		||||
	})
 | 
			
		||||
	app.On("setup", func() {
 | 
			
		||||
		var setupCmd = setup.NewSetupFromCmd()
 | 
			
		||||
		err := setupCmd.Run()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user