init claude-code
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { Command } from '../../commands.js'
|
||||
|
||||
const stickers = {
|
||||
type: 'local',
|
||||
name: 'stickers',
|
||||
description: 'Order Claude Code stickers',
|
||||
supportsNonInteractive: false,
|
||||
load: () => import('./stickers.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default stickers
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { LocalCommandResult } from '../../types/command.js'
|
||||
import { openBrowser } from '../../utils/browser.js'
|
||||
|
||||
export async function call(): Promise<LocalCommandResult> {
|
||||
const url = 'https://www.stickermule.com/claudecode'
|
||||
const success = await openBrowser(url)
|
||||
|
||||
if (success) {
|
||||
return { type: 'text', value: 'Opening sticker page in browser…' }
|
||||
} else {
|
||||
return {
|
||||
type: 'text',
|
||||
value: `Failed to open browser. Visit: ${url}`,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user