commands: Move the commands related logic to its own file

See #4598
This commit is contained in:
Bjørn Erik Pedersen 2018-04-11 07:54:08 +02:00
parent e8d6ca9531
commit a8f7fbbb10
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
4 changed files with 208 additions and 191 deletions

View file

@ -61,11 +61,6 @@ This is primarily to ensure that Hugo can watch enough files on some OSs`,
return &limitCmd{baseCmd: newBaseCmd(ccmd)}
}
func init() {
// TODO(bep) cli refactor
//checkCmdOld.AddCommand(limit)
}
func tweakLimit() {
var rLimit syscall.Rlimit
err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit)