AlexsJones/cli

View on GitHub
command/icommand.go

Summary

Maintainability
A
0 mins
Test Coverage
package command

//ICommand interface
type ICommand interface {
    Count() int
}

//Count the number of subcommands
func Count(i ICommand) int {
    return i.Count()
}