mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
Support CNB (Cloud Native Base, cnb.cool) as a git hosting platform for installing skills. This adds platform detection, token authentication via CNB_TOKEN, host configuration (cnb_hosts / SKILLSHARE_CNB_HOSTS), and URL parsing for both direct and web URLs (including /-/tree paths). Changes: - auth.go: add PlatformCNB, detect cnb.cool hosts, resolve CNB_TOKEN - config.go / project.go: add cnb_hosts config field with normalization and env var merge, plus EffectiveCNBHosts() accessor - source.go: add isCNBHost() and CNBHosts to ParseOptions - install.go: pass CNBHosts from config to source parsing - install_git.go: include CNB_TOKEN in auth error hints