You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/cli/src/bin/cli.ts
+8-18
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,8 @@ export function createProgram(): Command {
17
17
18
18
program
19
19
.command("create <template> [dir] [projectName]")
20
-
.description("Create a new project based on the coat template.")
21
-
.helpOption(
22
-
undefined,
23
-
'\n\nArguments:\ntemplate (required): The name of coat template from the npm registry (e.g. "@coat/template-ts-package")\n\ndir (optional): The directory where coat should create a project. Resolves to a relative path from the current working directory\n\nprojectName (optional): The name of your new project. Will use the trailing folder name of the project directory by default'
20
+
.description(
21
+
'Create a new project based on the coat template.\n\nArguments:\ntemplate (required): The name of coat template from the npm registry (e.g. "@coat/template-ts-package")\n\ndir (optional): The directory where coat should create a project. Resolves to a relative path from the current working directory\n\nprojectName (optional): The name of your new project. Will use the trailing folder name of the project directory by default'
@@ -29,26 +27,20 @@ export function createProgram(): Command {
29
27
program
30
28
.command("setup")
31
29
.description("Runs all setup tasks of the current coat project")
32
-
.helpOption(
33
-
undefined,
34
-
"\n\nGathers all setup tasks of the extended templates and runs them in sequential order."
35
-
)
36
30
.action(async()=>{
37
31
awaitsetup({cwd: process.cwd(),force: true});
38
32
});
39
33
40
34
program
41
35
.command("sync")
42
-
.description("Generates all files of the current coat project.")
36
+
.description(
37
+
'Generates all files of the current coat project.\nGathers all files of the extended templates, merges them and places them in the project directory.\n\nGenerated files can be extended by placing a file next to it with the "-custom.js" suffix and exporting a function that returns the customized content.'
38
+
)
43
39
.option(
44
40
"--check",
45
41
"Checks whether the coat project is in sync or whether there are any pending global file operations. Useful on CI systems to determine whether coat sync needs to be run."
46
42
)
47
43
.option("--skipInstall","Skips the installation of dependencies.")
48
-
.helpOption(
49
-
undefined,
50
-
'\n\nGathers all files of the extended templates, merges them and places them in the project directory.\n\nGenerated files can be extended by placing a file next to it with the "-custom.js" suffix and exporting a function that returns the customized content.'
51
-
)
52
44
.action(async(options)=>{
53
45
awaitsync({
54
46
cwd: process.cwd(),
@@ -59,12 +51,10 @@ export function createProgram(): Command {
.description("Runs one or multiple package.json scripts in parallel")
63
-
.allowUnknownOption()
64
-
.helpOption(
65
-
undefined,
66
-
'\n\nYou can run multiple scripts by specifying a wildcard, e.g. coat run build:* will run all scripts that are prefixed with build: inside the package.json scripts object.\n\nAll arguments after the first dash ("-") will be passed to each script, e.g. "coat run build --watch" will call the build script with "--watch"'
54
+
.description(
55
+
'Runs one or multiple package.json scripts in parallel\n\nYou can run multiple scripts by specifying a wildcard, e.g. coat run build:* will run all scripts that are prefixed with build: inside the package.json scripts object.\n\nAll arguments after the first dash ("-") will be passed to each script, e.g. "coat run build --watch" will call the build script with "--watch"'
"Generates all files of the current coat project.",
23
-
"Gathers all files of the extended templates, merges them and places them in the project directory.",
24
-
'Generated files can be extended by placing a file next to it with the "-custom.js" suffix and exporting a function that returns the customized content.',
23
+
"Gathers all files of the extended templates, merges them and places them in the",
24
+
"project directory.",
25
+
"Generated files can be extended by placing a file next to it with the",
26
+
'"-custom.js" suffix and exporting a function that returns the customized',
0 commit comments