feat: документация с алиасом create и корректные примеры

- Обновлены примеры в README и FEATURES с использованием алиаса create
  - Исправлены подсказки help на основной бин gromlab-create
  - Возвращены внутренние вызовы автодополнения на gromlab-create
This commit is contained in:
2026-01-27 15:18:43 +03:00
parent 1a48d6338f
commit b53248e134
5 changed files with 119 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ import { ParsedArgs } from './types';
export function printHelp() {
const lines = [
'Использование:',
' npx @gromlab/create <шаблон> <имя> [путь] [опции]',
' gromlab-create <шаблон> <имя> [путь] [опции]',
'',
'Аргументы:',
' <шаблон> Имя шаблона',
@@ -12,6 +12,7 @@ export function printHelp() {
'',
'Команды:',
' completion --shell <bash|zsh|fish> Сгенерировать скрипт автодополнения',
' install-autocomplete [--shell <bash|zsh|fish>] Установить автодополнение',
'',
'Опции:',
' --<var> <value> Переменная шаблона (поддерживается любой --key <value>)',
@@ -20,8 +21,8 @@ export function printHelp() {
' -h, --help Показать эту справку',
'',
'Примеры:',
' npx @gromlab/create component Button',
' npx @gromlab/create component Button src/components'
' gromlab-create component Button',
' gromlab-create component Button src/components'
];
console.log(lines.join('\n'));
}