func Generate(language, targetDirectory string) int
Generate generates typeset files in the given language for all types exported from known services
into the given targetDirectory. If the targetDirectory is the empty string, it will default to
plugins/types relative to the current working directory.