Merge pull request #686 from willglynn/cert_stub_exit_code
Cert command stub should return a non-zero exit code
This commit is contained in:
		
				commit
				
					
						1591a37ad5
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -8,6 +8,7 @@ package cmd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
 | 
						"os"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"github.com/codegangsta/cli"
 | 
						"github.com/codegangsta/cli"
 | 
				
			||||||
| 
						 | 
					@ -31,4 +32,5 @@ Outputs to 'cert.pem' and 'key.pem' and will overwrite existing files.`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func runCert(ctx *cli.Context) {
 | 
					func runCert(ctx *cli.Context) {
 | 
				
			||||||
	fmt.Println("Command cert not available, please use build tags 'cert' to rebuild.")
 | 
						fmt.Println("Command cert not available, please use build tags 'cert' to rebuild.")
 | 
				
			||||||
 | 
						os.Exit(1)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue