Class: ERDB::Messages

Inherits:
Object
  • Object
show all
Defined in:
lib/erdb/cli.rb

Overview

All the messages used in the CLI

Class Method Summary collapse

Class Method Details

.aboutObject



211
212
213
214
215
216
# File 'lib/erdb/cli.rb', line 211

def self.about
  <<~ABOUT
    ERDB is an automate tool to generate Entity-Relationship Diagrams from a database.
    It use Azimutt and DBDiagram to generate the diagrams.
  ABOUT
end

.helpObject



199
200
201
202
203
204
205
206
207
208
209
# File 'lib/erdb/cli.rb', line 199

def self.help
  <<~HELP
    #{about}
    Usage:
      erdb [options]

    Examples:
      erdb --browser=firefox --no-junction-table

  HELP
end

.welcomeObject



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/erdb/cli.rb', line 179

def self.welcome
  <<~WELCOME
       .----------------.  .----------------.  .----------------.  .----------------.
      | .--------------. || .--------------. || .--------------. || .--------------. |
      | |  _________   | || |  _______     | || |  ________    | || |   ______     | |
      | | |_   ___  |  | || | |_   __ \\    | || | |_   ___ `.  | || |  |_   _ \\    | |
      | |   | |_  \\_|  | || |   | |__) |   | || |   | |   `. \\ | || |    | |_) |   | |
      | |   |  _|  _   | || |   |  __ /    | || |   | |    | | | || |    |  __'.   | |
      | |  _| |___/ |  | || |  _| |  \\ \\_  | || |  _| |___.' / | || |   _| |__) |  | |
      | | |_________|  | || | |____| |___| | || | |________.'  | || |  |_______/   | |
      | |              | || |              | || |              | || |              | |
      | '--------------' || '--------------' || '--------------' || '--------------' |
       '----------------'  '----------------'  '----------------'  '----------------'
    #{about}
    ERDB will use chrome as the default browser to automate the process.
    Use 'erdb --help' to see the available options.

  WELCOME
end