info.ts — ui Source File
Architecture documentation for info.ts, a typescript file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 73de7e8c_53ed_9fd2_0a90_4e823240febf["info.ts"] b2895591_2a74_d518_deda_2f26be766dcb["get-config"] 73de7e8c_53ed_9fd2_0a90_4e823240febf --> b2895591_2a74_d518_deda_2f26be766dcb 24fd9695_7ceb_b1f6_c84e_e349d5356c12["get-project-info"] 73de7e8c_53ed_9fd2_0a90_4e823240febf --> 24fd9695_7ceb_b1f6_c84e_e349d5356c12 6be7d8a9_c93c_8743_3ef7_968efff25479["handle-error"] 73de7e8c_53ed_9fd2_0a90_4e823240febf --> 6be7d8a9_c93c_8743_3ef7_968efff25479 1df8bbed_5110_29f0_12f0_996fc7a1eda1["logger"] 73de7e8c_53ed_9fd2_0a90_4e823240febf --> 1df8bbed_5110_29f0_12f0_996fc7a1eda1 7d629454_eee6_73fe_2526_919af8d00ef9["commander"] 73de7e8c_53ed_9fd2_0a90_4e823240febf --> 7d629454_eee6_73fe_2526_919af8d00ef9 style 73de7e8c_53ed_9fd2_0a90_4e823240febf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { getConfig } from "@/src/utils/get-config"
import { getProjectInfo } from "@/src/utils/get-project-info"
import { handleError } from "@/src/utils/handle-error"
import { logger } from "@/src/utils/logger"
import { Command } from "commander"
export const info = new Command()
.name("info")
.description("get information about your project")
.option(
"-c, --cwd <cwd>",
"the working directory. defaults to the current directory.",
process.cwd()
)
.action(async (opts) => {
try {
logger.info("> project info")
console.log(await getProjectInfo(opts.cwd))
logger.break()
logger.info("> components.json")
console.log(await getConfig(opts.cwd))
} catch (error) {
handleError(error)
}
})
Domain
Subdomains
Functions
Dependencies
- commander
- get-config
- get-project-info
- handle-error
- logger
Source
Frequently Asked Questions
What does info.ts do?
info.ts is a source file in the ui codebase, written in typescript. It belongs to the FrameworkTooling domain, TemplateSync subdomain.
What functions are defined in info.ts?
info.ts defines 1 function(s): info.
What does info.ts depend on?
info.ts imports 5 module(s): commander, get-config, get-project-info, handle-error, logger.
Where is info.ts in the architecture?
info.ts is located at packages/shadcn/src/commands/info.ts (domain: FrameworkTooling, subdomain: TemplateSync, directory: packages/shadcn/src/commands).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free