mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 18:59:56 +01:00
416 lines
11 KiB
JSON
Executable File
416 lines
11 KiB
JSON
Executable File
{
|
|
"commands": {
|
|
"link:create": {
|
|
"settings": {
|
|
"loadApp": true,
|
|
"stayAlive": false
|
|
},
|
|
"commandPath": "./commands/Create",
|
|
"commandName": "link:create",
|
|
"description": "Quickly and easily create a new link",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "code",
|
|
"name": "code",
|
|
"required": true,
|
|
"description": "Code of the new link"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"propertyName": "target",
|
|
"name": "target",
|
|
"required": true,
|
|
"description": "Target of the new link"
|
|
}
|
|
],
|
|
"aliases": [
|
|
"new"
|
|
],
|
|
"flags": [
|
|
{
|
|
"name": "date",
|
|
"propertyName": "date",
|
|
"type": "string",
|
|
"alias": "d",
|
|
"description": "Date of the new link (Format: yyyy-MM-dd/HH:mm:ss)"
|
|
}
|
|
]
|
|
},
|
|
"link:delete": {
|
|
"settings": {
|
|
"loadApp": true,
|
|
"stayAlive": false
|
|
},
|
|
"commandPath": "./commands/Delete",
|
|
"commandName": "link:delete",
|
|
"description": "Delete an existing link",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "code",
|
|
"name": "code",
|
|
"required": true,
|
|
"description": "Code of the new link"
|
|
}
|
|
],
|
|
"aliases": [
|
|
"del",
|
|
"remove",
|
|
"rem"
|
|
],
|
|
"flags": []
|
|
},
|
|
"link:list": {
|
|
"settings": {
|
|
"loadApp": true,
|
|
"stayAlive": false
|
|
},
|
|
"commandPath": "./commands/List",
|
|
"commandName": "link:list",
|
|
"description": "List all your links",
|
|
"args": [],
|
|
"aliases": [
|
|
"link:ls"
|
|
],
|
|
"flags": []
|
|
},
|
|
"link:logs": {
|
|
"settings": {
|
|
"loadApp": true,
|
|
"stayAlive": false
|
|
},
|
|
"commandPath": "./commands/Logs",
|
|
"commandName": "link:logs",
|
|
"description": "Retrieves the number of visits of a link",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "code",
|
|
"name": "code",
|
|
"required": true,
|
|
"description": "Code of the new link"
|
|
}
|
|
],
|
|
"aliases": [
|
|
"link:stats",
|
|
"link:show"
|
|
],
|
|
"flags": []
|
|
},
|
|
"link:update": {
|
|
"settings": {
|
|
"loadApp": true,
|
|
"stayAlive": false
|
|
},
|
|
"commandPath": "./commands/Update",
|
|
"commandName": "link:update",
|
|
"description": "Update an existing link",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "code",
|
|
"name": "code",
|
|
"required": true,
|
|
"description": "Code of the new link"
|
|
}
|
|
],
|
|
"aliases": [
|
|
"set"
|
|
],
|
|
"flags": [
|
|
{
|
|
"name": "new-code",
|
|
"propertyName": "new_code",
|
|
"type": "string",
|
|
"description": "The new code of the link"
|
|
},
|
|
{
|
|
"name": "target",
|
|
"propertyName": "target",
|
|
"type": "string",
|
|
"description": "The new target of the link"
|
|
},
|
|
{
|
|
"name": "expire",
|
|
"propertyName": "expire",
|
|
"type": "string",
|
|
"description": "The new expiration date of the link"
|
|
}
|
|
]
|
|
},
|
|
"dump:rcfile": {
|
|
"settings": {},
|
|
"commandPath": "@adonisjs/core/build/commands/DumpRc",
|
|
"commandName": "dump:rcfile",
|
|
"description": "Dump contents of .adonisrc.json file along with defaults",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": []
|
|
},
|
|
"list:routes": {
|
|
"settings": {
|
|
"loadApp": true
|
|
},
|
|
"commandPath": "@adonisjs/core/build/commands/ListRoutes",
|
|
"commandName": "list:routes",
|
|
"description": "List application routes",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "json",
|
|
"propertyName": "json",
|
|
"type": "boolean",
|
|
"description": "Output as JSON"
|
|
}
|
|
]
|
|
},
|
|
"generate:key": {
|
|
"settings": {},
|
|
"commandPath": "@adonisjs/core/build/commands/GenerateKey",
|
|
"commandName": "generate:key",
|
|
"description": "Generate a new APP_KEY secret",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": []
|
|
},
|
|
"repl": {
|
|
"settings": {
|
|
"loadApp": true,
|
|
"environment": "repl",
|
|
"stayAlive": true
|
|
},
|
|
"commandPath": "@adonisjs/repl/build/commands/AdonisRepl",
|
|
"commandName": "repl",
|
|
"description": "Start a new REPL session",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": []
|
|
},
|
|
"db:seed": {
|
|
"settings": {
|
|
"loadApp": true
|
|
},
|
|
"commandPath": "@adonisjs/lucid/build/commands/DbSeed",
|
|
"commandName": "db:seed",
|
|
"description": "Execute database seeder files",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "connection",
|
|
"propertyName": "connection",
|
|
"type": "string",
|
|
"description": "Define a custom database connection for the seeders",
|
|
"alias": "c"
|
|
},
|
|
{
|
|
"name": "interactive",
|
|
"propertyName": "interactive",
|
|
"type": "boolean",
|
|
"description": "Run seeders in interactive mode",
|
|
"alias": "i"
|
|
},
|
|
{
|
|
"name": "files",
|
|
"propertyName": "files",
|
|
"type": "array",
|
|
"description": "Define a custom set of seeders files names to run",
|
|
"alias": "f"
|
|
}
|
|
]
|
|
},
|
|
"make:model": {
|
|
"settings": {},
|
|
"commandPath": "@adonisjs/lucid/build/commands/MakeModel",
|
|
"commandName": "make:model",
|
|
"description": "Make a new Lucid model",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "name",
|
|
"name": "name",
|
|
"required": true,
|
|
"description": "Name of the model class"
|
|
}
|
|
],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "migration",
|
|
"propertyName": "migration",
|
|
"type": "boolean",
|
|
"alias": "m",
|
|
"description": "Generate the migration for the model"
|
|
},
|
|
{
|
|
"name": "controller",
|
|
"propertyName": "controller",
|
|
"type": "boolean",
|
|
"alias": "c",
|
|
"description": "Generate the controller for the model"
|
|
}
|
|
]
|
|
},
|
|
"make:migration": {
|
|
"settings": {
|
|
"loadApp": true
|
|
},
|
|
"commandPath": "@adonisjs/lucid/build/commands/MakeMigration",
|
|
"commandName": "make:migration",
|
|
"description": "Make a new migration file",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "name",
|
|
"name": "name",
|
|
"required": true,
|
|
"description": "Name of the migration file"
|
|
}
|
|
],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "connection",
|
|
"propertyName": "connection",
|
|
"type": "string",
|
|
"description": "The connection flag is used to lookup the directory for the migration file"
|
|
},
|
|
{
|
|
"name": "folder",
|
|
"propertyName": "folder",
|
|
"type": "string",
|
|
"description": "Pre-select a migration directory"
|
|
},
|
|
{
|
|
"name": "create",
|
|
"propertyName": "create",
|
|
"type": "string",
|
|
"description": "Define the table name for creating a new table"
|
|
},
|
|
{
|
|
"name": "table",
|
|
"propertyName": "table",
|
|
"type": "string",
|
|
"description": "Define the table name for altering an existing table"
|
|
}
|
|
]
|
|
},
|
|
"make:seeder": {
|
|
"settings": {},
|
|
"commandPath": "@adonisjs/lucid/build/commands/MakeSeeder",
|
|
"commandName": "make:seeder",
|
|
"description": "Make a new Seeder file",
|
|
"args": [
|
|
{
|
|
"type": "string",
|
|
"propertyName": "name",
|
|
"name": "name",
|
|
"required": true,
|
|
"description": "Name of the seeder class"
|
|
}
|
|
],
|
|
"aliases": [],
|
|
"flags": []
|
|
},
|
|
"migration:run": {
|
|
"settings": {
|
|
"loadApp": true
|
|
},
|
|
"commandPath": "@adonisjs/lucid/build/commands/Migration/Run",
|
|
"commandName": "migration:run",
|
|
"description": "Run pending migrations",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "connection",
|
|
"propertyName": "connection",
|
|
"type": "string",
|
|
"description": "Define a custom database connection",
|
|
"alias": "c"
|
|
},
|
|
{
|
|
"name": "force",
|
|
"propertyName": "force",
|
|
"type": "boolean",
|
|
"description": "Explicitly force to run migrations in production"
|
|
},
|
|
{
|
|
"name": "dry-run",
|
|
"propertyName": "dryRun",
|
|
"type": "boolean",
|
|
"description": "Print SQL queries, instead of running the migrations"
|
|
}
|
|
]
|
|
},
|
|
"migration:rollback": {
|
|
"settings": {
|
|
"loadApp": true
|
|
},
|
|
"commandPath": "@adonisjs/lucid/build/commands/Migration/Rollback",
|
|
"commandName": "migration:rollback",
|
|
"description": "Rollback migrations to a given batch number",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "connection",
|
|
"propertyName": "connection",
|
|
"type": "string",
|
|
"description": "Define a custom database connection",
|
|
"alias": "c"
|
|
},
|
|
{
|
|
"name": "force",
|
|
"propertyName": "force",
|
|
"type": "boolean",
|
|
"description": "Explictly force to run migrations in production"
|
|
},
|
|
{
|
|
"name": "dry-run",
|
|
"propertyName": "dryRun",
|
|
"type": "boolean",
|
|
"description": "Print SQL queries, instead of running the migrations"
|
|
},
|
|
{
|
|
"name": "batch",
|
|
"propertyName": "batch",
|
|
"type": "number",
|
|
"description": "Define custom batch number for rollback. Use 0 to rollback to initial state"
|
|
}
|
|
]
|
|
},
|
|
"migration:status": {
|
|
"settings": {
|
|
"loadApp": true
|
|
},
|
|
"commandPath": "@adonisjs/lucid/build/commands/Migration/Status",
|
|
"commandName": "migration:status",
|
|
"description": "Check migrations current status.",
|
|
"args": [],
|
|
"aliases": [],
|
|
"flags": [
|
|
{
|
|
"name": "connection",
|
|
"propertyName": "connection",
|
|
"type": "string",
|
|
"description": "Define a custom database connection",
|
|
"alias": "c"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"aliases": {
|
|
"new": "link:create",
|
|
"del": "link:delete",
|
|
"remove": "link:delete",
|
|
"rem": "link:delete",
|
|
"link:ls": "link:list",
|
|
"link:stats": "link:logs",
|
|
"link:show": "link:logs",
|
|
"set": "link:update"
|
|
}
|
|
}
|