Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7906c57

Browse files
committed
Update Usage
1 parent1a9e49f commit7906c57

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

‎bin/create-net.js‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ if (args.length < 1) {
2020
console.error('');
2121
console.error('Examples:');
2222
console.error(' npx create-net ls');
23-
console.error(' npx create-net lsNetFrameworkTemplates');
24-
console.error(' npx create-netnextjs MyProject');
25-
console.error(' npx create-netNetFrameworkTemplates/web-netfx MyProject');
26-
console.error(' npx create-netnextjs (uses current directory name)');
23+
console.error(' npx create-net ls<organization>');
24+
console.error(' npx create-net<template> ProjectName');
25+
console.error(' npx create-net<organization>/<template> ProjectName');
26+
console.error(' npx create-net<template> (uses current directory name)');
2727
process.exit(1);
2828
}
2929

@@ -127,8 +127,7 @@ async function listTemplates(targetOrg) {
127127
}else{
128128
// List templates from default organizations
129129
organizations=[
130-
{name:'NetCoreTemplates',title:'.NET Core Templates'},
131-
{name:'NetFrameworkTemplates',title:'.NET Framework Templates'}
130+
{name:'NetCoreTemplates',title:'.NET Templates'},
132131
];
133132
}
134133

@@ -165,10 +164,10 @@ async function listTemplates(targetOrg) {
165164
console.log(' npx create-net <org>/<repo> [ProjectName]');
166165
console.log(' npx create-net ls [org]');
167166
console.log('\n\x1b[1mExamples:\x1b[0m');
168-
console.log(' npx create-net ls# List all templates');
169-
console.log(' npx create-net lsNetFrameworkTemplates # List specific org templates');
170-
console.log(' npx create-netnextjs MyProject # Create from NetCoreTemplates');
171-
console.log(' npx create-netNetFrameworkTemplates/web-netfx MyApp # Create from specific org');
167+
console.log(' npx create-net ls # List all templates');
168+
console.log(' npx create-net ls<org> # List specific org templates');
169+
console.log(' npx create-net<template> ProjectName # Create from NetCoreTemplates');
170+
console.log(' npx create-net<org>/<template> ProjectName # Create from specific org');
172171

173172
}catch(err){
174173
console.error('Error listing templates:',err.message);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp