From 2029433938ecb2f17dfeef363e1a79104204217c Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Wed, 5 Mar 2025 08:32:11 +0100 Subject: [PATCH] chore: add go files for gh fetcher part --- src/cmd/ghProfile.go | 30 ++++++++++++++++++++++++++++++ src/cmd/utils/gh_p_fetcher.go | 7 +++++++ 2 files changed, 37 insertions(+) create mode 100644 src/cmd/ghProfile.go create mode 100644 src/cmd/utils/gh_p_fetcher.go diff --git a/src/cmd/ghProfile.go b/src/cmd/ghProfile.go new file mode 100644 index 0000000..d822d2d --- /dev/null +++ b/src/cmd/ghProfile.go @@ -0,0 +1,30 @@ +/* +Copyright © 2025 NAME HERE + +*/ +package cmd + +import ( + "fmt" + + "github.com/spf13/cobra" +) + +// ghProfileCmd represents the ghProfile command +var ghProfileCmd = &cobra.Command{ + Use: "ghProfile", + Short: "This command will create add a github profile to your author list for use in commits", + Long: `This command will create add a github profile to your author list for use in commits. + You just have to run the command with a link to the github profile you want to add. To read the email + from the profile, the command will use the github api but this requires a token for authentication. + Alternatively, you can add the email manually by following the TUI or adding the email flag to the command. + There are two modes of operation manual and automatic. The automatic mode will use the github api to get the email + from the profile. The manual mode will prompt you to enter the email for the profile.`, + Run: func(cmd *cobra.Command, args []string) { + + }, +} + +func init() { + rootCmd.AddCommand(ghProfileCmd) +} diff --git a/src/cmd/utils/gh_p_fetcher.go b/src/cmd/utils/gh_p_fetcher.go new file mode 100644 index 0000000..30ae5d2 --- /dev/null +++ b/src/cmd/utils/gh_p_fetcher.go @@ -0,0 +1,7 @@ +package utils + +import ( + +) + +