Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: cmdList is not async anymore
  • Loading branch information
WolfieLeader committed Mar 9, 2026
commit a9242d66bec64806d63620e28f7cb01892d1bb2a
6 changes: 3 additions & 3 deletions packages/intent/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ function getMetaDir(): string {
// Commands
// ---------------------------------------------------------------------------

async function cmdList(args: Array<string>): Promise<void> {
function cmdList(args: Array<string>): void {
const jsonOutput = args.includes('--json')

let result: ScanResult
try {
result = await scanForIntents()
result = scanForIntents()
} catch (err) {
console.error((err as Error).message)
process.exit(1)
Expand Down Expand Up @@ -450,7 +450,7 @@ const commandArgs = process.argv.slice(3)

switch (command) {
case 'list':
await cmdList(commandArgs)
cmdList(commandArgs)
break
case 'meta':
cmdMeta(commandArgs)
Expand Down
6 changes: 3 additions & 3 deletions packages/intent/src/intent-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import type { LibraryScanResult } from './library-scanner.js'
// Commands
// ---------------------------------------------------------------------------

async function cmdList(): Promise<void> {
function cmdList(): void {
let result: LibraryScanResult
try {
result = await scanLibrary(process.argv[1]!)
result = scanLibrary(process.argv[1]!)
} catch (err) {
console.error((err as Error).message)
process.exit(1)
Expand Down Expand Up @@ -136,7 +136,7 @@ const command = process.argv[2]
switch (command) {
case 'list':
case undefined:
await cmdList()
cmdList()
break
case 'install':
cmdInstall()
Expand Down