Skip to content

Приложение для терминала - #2

Merged
Dmitiry1921 merged 3 commits into
htmlacademy-nodejs-api:masterfrom
aleksandrchusovitin:module1-task2
Sep 8, 2025
Merged

Dmitiry1921 merged 3 commits into
htmlacademy-nodejs-api:masterfrom
aleksandrchusovitin:module1-task2

Conversation

@aleksandrchusovitin

@aleksandrchusovitin aleksandrchusovitin commented Sep 4, 2025 •

Copy link
Copy Markdown
Contributor

@keksobot keksobot changed the title Module1 task2 Приложение для терминала Sep 4, 2025

@Dmitiry1921 Dmitiry1921 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оставил коменты в ПР

Comment thread src/cli/commands/version.command.ts Outdated
Comment thread tsconfig.json Outdated
Comment thread src/cli/commands/command.interface.ts Outdated
@@ -0,0 +1,4 @@
export interface Command {
getName(): string;
execute(...parameters: string[]): void;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот тут можно сделать опциональный параметр parameters так как не везде его принимать нужно, например help и version у тебя не принимают никаких параметров

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дк вроде rest параметр и так не обязательный, ну тоесть он создаст пустой массив, если в аругменты при вызхове ничего не передать, я вроде из учебного проекта это взял)

Comment thread src/cli/commands/help.command.ts
Comment thread src/cli/commands/version.command.ts
Comment thread .eslintrc.yaml
extends:
- "plugin:@typescript-eslint/recommended"
- "htmlacademy/node"
rules:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А эти правила зачем добавлял ? В требованиях задания вроде бы об этом ни слова )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне режет глаз, когда скобки прилипают например {Obj}, просто добавил для своего удобства - вроде не наружшает каких-то правил?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет правил не нарушает, просто удивился, что ты сразу в линтинг полез )

Comment thread Makefile

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем тебе Makefile в NodeJS проекте ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну мне просто удобней через make команды писать - не принципиально - могу удалить)

@Dmitiry1921
Dmitiry1921 merged commit e8ffad9 into htmlacademy-nodejs-api:master Sep 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants