INNER CODE UNIT · Go

init

ghostsecurity/reaper · internal/cli/get.go:20

func init() {
	rootCmd.AddCommand(getCmd)
}

func runGet(cmd *cobra.Command, args []string) error {
	return fetchAndPrint(args[0], "get")
}

func fetchAndPrint(idStr, command string) error {
	id, err := strconv.ParseInt(idStr, 10, 64)
	if err != nil {
		return fmt.Errorf("invalid entry ID: %s", idStr)
	}

	dataDir, err := daemon.DataDir()
	if err != nil {
		return err
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…