Home / Function/ main() — ui Function Reference

main() — ui Function Reference

Architecture documentation for the main() function in index.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  8c01449e_e53e_16cf_b00b_e176d622258d["main()"]
  27cad3c1_266e_e42e_f1a7_558516d0b4a2["index.ts"]
  8c01449e_e53e_16cf_b00b_e176d622258d -->|defined in| 27cad3c1_266e_e42e_f1a7_558516d0b4a2
  28cbf717_ece8_4d0e_8139_2a282be1870c["getInvoker()"]
  8c01449e_e53e_16cf_b00b_e176d622258d -->|calls| 28cbf717_ece8_4d0e_8139_2a282be1870c
  style 8c01449e_e53e_16cf_b00b_e176d622258d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/cli/src/index.ts lines 21–34

const main = async () => {
  console.log(
    chalk.yellow(
      "The 'shadcn-ui' package is deprecated. Please use the 'shadcn' package instead:"
    )
  )
  console.log("")
  console.log(chalk.green(`  ${getInvoker()}`))
  console.log("")
  console.log(
    chalk.yellow("For more information, visit: https://ui.shadcn.com/docs/cli")
  )
  console.log("")
}

Subdomains

Calls

Frequently Asked Questions

What does main() do?
main() is a function in the ui codebase, defined in deprecated/cli/src/index.ts.
Where is main() defined?
main() is defined in deprecated/cli/src/index.ts at line 21.
What does main() call?
main() calls 1 function(s): getInvoker.

Analyze Your Own Codebase

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

Try Supermodel Free