diff options
| author | JeromeJu <[email protected]> | 2025-07-31 18:14:22 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-31 22:14:22 +0000 |
| commit | 574015edd91a651b0a4770e595be7ff10d67e5ab (patch) | |
| tree | 8283bdc1e4f37ae3b034234752b7b51ca62f20f5 /packages/cli/src/services/BuiltinCommandLoader.ts | |
| parent | f9a05401c1d2d93d1251d3ebf2c079ee1f4ba8df (diff) | |
feat: Implement /setup-github command (#5069)
Diffstat (limited to 'packages/cli/src/services/BuiltinCommandLoader.ts')
| -rw-r--r-- | packages/cli/src/services/BuiltinCommandLoader.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/cli/src/services/BuiltinCommandLoader.ts b/packages/cli/src/services/BuiltinCommandLoader.ts index 3b54047c..46ecb37c 100644 --- a/packages/cli/src/services/BuiltinCommandLoader.ts +++ b/packages/cli/src/services/BuiltinCommandLoader.ts @@ -31,6 +31,8 @@ import { statsCommand } from '../ui/commands/statsCommand.js'; import { themeCommand } from '../ui/commands/themeCommand.js'; import { toolsCommand } from '../ui/commands/toolsCommand.js'; import { vimCommand } from '../ui/commands/vimCommand.js'; +import { setupGithubCommand } from '../ui/commands/setupGithubCommand.js'; +import { isGitHubRepository } from '../utils/gitUtils.js'; /** * Loads the core, hard-coded slash commands that are an integral part @@ -72,6 +74,7 @@ export class BuiltinCommandLoader implements ICommandLoader { themeCommand, toolsCommand, vimCommand, + ...(isGitHubRepository() ? [setupGithubCommand] : []), ]; return allDefinitions.filter((cmd): cmd is SlashCommand => cmd !== null); |
