Module: Strata::CLI::Prompts
- Included in:
- SubCommands::Create, SubCommands::Table
- Defined in:
- lib/strata/cli/helpers/prompts.rb
Constant Summary collapse
- MSG_SELECT_LEFT_TABLE =
Relation Command Prompts
"Select LEFT table (the 'many' side usually):"- MSG_SELECT_RIGHT_TABLE_ALL =
"Select RIGHT table (All):"- MSG_SELECT_RIGHT_TABLE_SUGGESTED =
"Select RIGHT table (Suggested):"- MSG_NO_TABLES_FOUND =
"No tables found in %s"- MSG_SHOW_OTHER_TABLES =
"Show other tables..."- MSG_SELECT_FROM_LIST =
"Select from list instead?"- MSG_JOIN_CONDITION =
" Join Condition (SQL):"- MSG_RELATION_PATH =
" Relationship Path:"- MSG_SEARCH_TABLE =
Table Command Prompts
"Search table:"- MSG_MODEL_DISPLAY_NAME =
" Model display name:"- MSG_MODEL_DESCRIPTION =
" Model description (optional):"- MSG_NO_FIELDS_CONFIRMED =
"\n⚠️ Warning: No fields confirmed. All fields may have been skipped."- MSG_CONTINUE_NO_FIELDS =
"Continue creating model with no fields?"- MSG_FIELDS_CONFIRMED =
"\n %d field(s) confirmed"- MSG_CREATED_MODEL =
"\n✔ Created %s"- MSG_EDIT_MODEL_HINT =
"\n💡 Edit the file to customize field names & expressions"- MSG_NO_MODELS_DIR =
"No models directory found. Run 'strata create table' to create your first model."- MSG_NO_MODELS_FOUND =
"No models found. Run 'strata create table' to create one."- MSG_MODELS_LIST_HEADER =
"\n Semantic Models:\n"- MSG_MODELS_COUNT =
"\n Total: %d model(s)\n"- MIGRATION_HOOK_OPTIONS =
Migration hook options
{ "pre (before deployment)" => "pre", "post (after deployment)" => "post" }.freeze
Class Method Summary collapse
Class Method Details
.default_migration_hook(operation) ⇒ Object
39 40 41 |
# File 'lib/strata/cli/helpers/prompts.rb', line 39 def default_migration_hook(operation) (operation == "swap") ? "post (after deployment)" : "pre (before deployment)" end |