From d5dd19b64cdf809d11c9d530fb654a9da387c74b Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sun, 4 May 2025 00:08:20 +0800 Subject: [PATCH] xtool/cppkg: Main => Install --- xtool/cppkg/cppkg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtool/cppkg/cppkg.go b/xtool/cppkg/cppkg.go index e5bbfde7..734c13bf 100644 --- a/xtool/cppkg/cppkg.go +++ b/xtool/cppkg/cppkg.go @@ -25,9 +25,9 @@ const ( DefaultFlags = IndexAutoUpdate | ToolQuietInstall ) -// Main is the main entry point for the cppkg package. +// Install installs a package with the given name and version. // pkgAndVer: 7bitcoder/7bitconf@1.2.0 -func Main(pkgAndVer string, flags int) { +func Install(pkgAndVer string, flags int) { pkgPath, ver := parsePkgVer(pkgAndVer) if ver == "" { panic("TODO: get latest version")