Conversation
|
@kushvinth Thank you for your contribution! The tool I tested your changes locally and satisfied with it. Will merge this PR shortly after few revisions. |
|
PS: we also need to re-do the video on the readme |
|
Yeah it is noted, that will be covered too. |
|
@kushvinth
Anyways, Since the open source licenses are definite, versioned and stable, we can add those templates and find no good reason to have network calls. Currently, the binary size is about So these are my suggestions. |
| licenses, fetchErr = license.FetchLicenses() | ||
| if fetchErr != nil { | ||
| // If fetch fails, provide some basic options | ||
| licenses = []license.GitHubLicense{ |
There was a problem hiding this comment.
Since the keys are definite and known, we don't need a fetch call here and better skip it.
| Description("Select a license for the project"). | ||
| Options(licenseOptions...), | ||
| ), | ||
| huh.NewGroup( |
There was a problem hiding this comment.
Conditionally can have this input group
| } | ||
|
|
||
| // GetGitUsername retrieves the git user.name from global config | ||
| func GetGitUsername() string { |
| } | ||
|
|
||
| // RenderLicense replaces placeholders in license content with actual values | ||
| func RenderLicense(content, author, year string) string { |
| } | ||
|
|
||
| // FetchLicenses retrieves the list of available licenses from GitHub API | ||
| func FetchLicenses() ([]GitHubLicense, error) { |
| } | ||
|
|
||
| // GetLicenseContent retrieves the full license content from GitHub API | ||
| func GetLicenseContent(key string) (string, error) { |
|
Can you rather create a dir |
Feat(License): Add Interactive License Generation to Project Initialisation
Overview
Added comprehensive license generation functionality to
vgoCLI, allowing users to select and generate licenses directly during project initialisation with GitHub API integration. Inspired from licDemo
CleanShot.2026-01-15.at.08.45.52.mp4