Github sponsors

Today my application for Github Sponsors was approved, now what? Ummmm…

Sponsors Profile

Github Sponsors Profile

Well, there is no difference yet, so I will continue contributing to open source projects as I was doing before, but if you want to sponsor someone please try with me hehehe. You can go to my sponsors profile and choose a tier, starting from $3 or any tier that matches with your desire to contribute.

Improving github cli

I use a lot Alfred app to be more productive and make easier my job, one of the Workflows that I use most is the Github Repos which uses a custom script to fetch the repositories when you want to search. Since Github recently released a cli version, I want to make use of this tool, but the github cli doesn’t have a search feature. So I started a Pull Request to add this functionality, so in the next days and based on my time availability, I will be pushing to have that functionality.

This cli is writed on Go, so is an oportunity to put on practice my knowledge on Golang.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package command

import (
	"github.com/spf13/cobra"
)

func init() {
	RootCmd.AddCommand(searchCmd)
	searchCmd.AddCommand(repoSearch)

	repoSearch.Flags().StringP("sort", "s", "stars", "Sort by (default: stars)")
	repoSearch.Flags().Int16P("count", "c", 10, "Retrieve quantity (default: 10)")
}

var searchCmd = &cobra.Command{
	Use:   "search",
	Short: "Search for users or repositories by keyword",
	Long: `Search users or repositories.

A keyword can be supplied as an argument as any of the following formats:
- keyword
- "a long keyword string"
`,
}

var repoSearch = &cobra.Command{
	Use:   "repo",
	Args:  cobra.MinimumNArgs(1),
	Short: "Search a repository by keyword",
	RunE:  searchRepo,
}

func searchRepo(cmd *cobra.Command, args []string) error {
	// keyword := args[0]
	return nil
}