File size: 336 Bytes
abcf568
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { allStudioCommands } from './all-commands'
import type { StudioParsedCommand } from './types'

export function parseStudioCommand(input: string): StudioParsedCommand | null {
  for (const command of allStudioCommands) {
    const parsed = command.matches(input)
    if (parsed) {
      return parsed
    }
  }

  return null
}