Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Codegen CLI

A codegen module that handles all codegen CLI commands.

Dependencies

Best Practices

  • Each folder in cli should correspond to a command group. The name of the folder should be the name of the command group. Ex: task for codegen task commands.
  • The command group folder should have a file called commands.py where the CLI group (i.e. function decorated with @click.group()) and CLI commands are defined (i.e. functions decorated with ex: @task.command()) and if necessary a folder called utils (or a single utils.py) that holds any additional files with helpers/utilities that are specific to the command group.
  • Store utils specific to a CLI command group within its folder.
  • Store utils that can be shared across command groups in an appropriate file in cli/utils. If none exists, create a new appropriately named one!
Morty Proxy This is a proxified and sanitized view of the page, visit original site.