Home / Function/ isValidSubcommand() — astro Function Reference

isValidSubcommand() — astro Function Reference

Architecture documentation for the isValidSubcommand() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  b27aef3e_dc25_7ebb_6720_cb782a29f4f8["isValidSubcommand()"]
  f7d3fd10_bcd7_7c85_17b8_a4feb9026da8["index.ts"]
  b27aef3e_dc25_7ebb_6720_cb782a29f4f8 -->|defined in| f7d3fd10_bcd7_7c85_17b8_a4feb9026da8
  4ec23106_e310_07dc_a9e9_e382aeb6a997["preferences()"]
  4ec23106_e310_07dc_a9e9_e382aeb6a997 -->|calls| b27aef3e_dc25_7ebb_6720_cb782a29f4f8
  style b27aef3e_dc25_7ebb_6720_cb782a29f4f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/cli/preferences/index.ts lines 35–37

function isValidSubcommand(subcommand: string): subcommand is Subcommand {
	return PREFERENCES_SUBCOMMANDS.includes(subcommand as Subcommand);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isValidSubcommand() do?
isValidSubcommand() is a function in the astro codebase, defined in packages/astro/src/cli/preferences/index.ts.
Where is isValidSubcommand() defined?
isValidSubcommand() is defined in packages/astro/src/cli/preferences/index.ts at line 35.
What calls isValidSubcommand()?
isValidSubcommand() is called by 1 function(s): preferences.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free