Skip to content

src/delete-command.ts

15 lines · 458 B · TypeScript
Raw
import { deleteCommandRecord } from './commands-store.ts'

/**
 * Delete a Raycast execute command from package storage by id.
 *
 * @param input.id - Command id
 * @returns Whether a record was deleted
 *
 * @example
 * import deleteCommand from 'kody:@kody/raycast/delete-command'
 * await deleteCommand({ id: 'example-list-packages' })
 */
export default async function deleteCommand(input: { id: string }) {
	return await deleteCommandRecord(input.id)
}