1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
"Alias": "view",
"Description": "Generates a view.",
"Arguments": [
{
"Name": "viewName",
"Description": "Name of the view"
},
{
"Name": "templateName",
"Description": "The view template to use, supported view templates: 'Empty|Create|Edit|Delete|Details|List'"
}
],
"Options": [
{
"Name": "model",
"ShortName": "m",
"Description": "Model class to use"
},
{
"Name": "dataContext",
"ShortName": "dc",
"Description": "DbContext class to use"
},
{
"Name": "referenceScriptLibraries",
"ShortName": "scripts",
"Description": "Switch to specify whether to reference script libraries in the generated views"
},
{
"Name": "layout",
"ShortName": "l",
"Description": "Custom Layout page to use"
},
{
"Name": "useDefaultLayout",
"ShortName": "udl",
"Description": "Switch to specify that default layout should be used for the views"
},
{
"Name": "force",
"ShortName": "f",
"Description": "Use this option to overwrite existing files"
},
{
"Name": "relativeFolderPath",
"ShortName": "outDir",
"Description": "Specify the relative output folder path from project where the file needs to be generated, if not specified, file will be generated in the project folder"
},
{
"Name": "controllerNamespace",
"ShortName": "namespace",
"Description": "Specify the name of the namespace to use for the generated controller"
},
{
"Name": "partialView",
"ShortName": "partial",
"Description": "Generate a partial view, other layout options (-l and -udl) are ignored if this is specified"
}
]
}
|