Home Reference Source Test

References

lib

summary
public

mongoose-data-seed config

public

mongoose-data-seed user config filename

public

mongoose-data-seed default user generator-config

public

system template for user-config path

public

system seeder template path

lib/commands

summary
public

Get the command name of a given alias

public

Get the function of a given command

public

Get the command and the arguments from the cli

public

F isAlias(command: string): Boolean

Whether a given command is an alias

public

F runCommand(command: string, argv: string): *

Run command

public

Available command aliases

public

All available command names as list (includes aliases)

public

Available command names

public

Commands map

public

The fefault command name

lib/commands/generate

summary
public

F async generateSeeder(name: string): Promise

Generate a new seeder.

public

F help()

Prints the generate command user-guide

public

F async index(argv: stringp[]): Promise

mongoose-data-seed generate command

public

F getOptions(argv: string[]): Object

Get generate options from argv

public

F validateOptions(options: Object)

Validate generate command options

public

Generate command option defenitions

lib/commands/help

summary
public

F async help()

Prints the help

public

Help command user guide

lib/commands/init

summary
public

Installer Logger

public

F help()

Prints the install command user-guide

public

F async index(argv: stringp[]): Promise

mongoose-data-seed init command

public

F getOptions(argv: string[]): Object

Get init options from argv

public

F async promptMissingOptions(options: Object): Promise

Prompt missing options for init command

public

F async runinstaller(options: Object): Promise

Run the installer

public

Init command option defenitions

lib/commands/run

summary
public

Run Logger

public

F help()

Prints the run command user-guide

public

F async index(argv: stringp[]): Promise

mongoose-data-seed run command

public

F getOptions(argv: string[]): Object

Get run options from argv or prompts

public

F async run(options: Object): Promise

Run seeders

public

Run command option defenitions

public

Run command user guide

lib/core

summary
public

Installer Error

public

mongoose-data-seed installer

public

MdSeedRunner Error

public

mongoose-data-seed runner

public

Seeder Generator

public

lib/utils

summary
public

Base Logger

public

C Seeder

Base class for seeders to extend.

public

F exit(error: Error)

Exit mongoose-data-seed.

public

Get folder name from given path.

public

Get object with selected keys from a given object.

public

Normalize seeder filename.

public

Normalize seeder name.

public

Validate seeder template path.

public

Validate seeders folder name.

public

Validate user config.

public

System exit codes