diff --git a/apps/docs/pages/new/reference/cli/usage.tsx b/apps/docs/pages/new/reference/cli/usage.tsx deleted file mode 100644 index 9fd2591ac0b..00000000000 --- a/apps/docs/pages/new/reference/cli/usage.tsx +++ /dev/null @@ -1,95 +0,0 @@ -// @ts-expect-error -import cliSpec from '~/../../spec/cli_v1_commands_new_shape.yaml' assert { type: 'yml' } -import CodeBlock from '~/components/CodeBlock/CodeBlock' - -type Flag = { - id: string - name: string - description: string - default_value: string -} - -type Command = { - id: string - title: string - description: string - flags?: Flag[] - summary: string - tags?: [] - links?: [] - subcommands?: [] - usage?: string -} - -export default function CliUsage() { - return ( -
-
-
-

Usage

-
-

{cliSpec.info.description}

- -
- {cliSpec.commands.map((command: Command, commandIndex) => { - return ( -
-
-
-
-

- {command.summary} -

-
- - {command.usage && ( - - {command.usage} - - )} - - {command.subcommands.length > 0 && ( - <> -

Available Commands

- - - )} - {command.flags.length > 0 && ( - <> -

Options

-
    - {command.flags.map((flag) => ( -
  • -
    - {flag.name} -
    -

    {flag.description}

    -
  • - ))} -
- - )} -
-
-
- ) - })} -
-
-
-
- ) -}