mix vibe.generate (vibe v0.1.0)
View SourceGenerates code snippets and templates based on specifications.
Usage
mix vibe.generate TYPE NAME [DESCRIPTION] [OPTIONS]
Examples
mix vibe.generate module MyApp.MyModule "A module for handling user authentication"
mix vibe.generate genserver MyApp.UserStore "A GenServer for storing user data"
mix vibe.generate supervisor MyApp.MySupervisor "A supervisor for my application"
mix vibe.generate test MyApp.MyModule
Types
module Generate a basic module
genserver Generate a GenServer template
supervisor Generate a supervisor template
test Generate a test module
Options
--output FILE Output file path, defaults to lib/NAME_PARTS/LAST_PART.ex or test/NAME_PARTS/LAST_PART_test.exs
--force Overwrite existing file
--format FORMAT Output format (text, json, markdown, default: config value or markdown)
--help, -h Show this help message