~coder_kalyan/bibcli

840abba8867529f185651b7cce242afee9dfc7de — Kalyan Sriram 3 months ago main
initial commit
5 files changed, 51 insertions(+), 0 deletions(-)

A cmd/bibify/root.go
A go.mod
A go.sum
A main.go
A pkg/bibify/request.go
A  => cmd/bibify/root.go +24 -0
@@ 1,24 @@
package bibify

import (
	"fmt"
	"os"

	"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
	Use: "bibify",
	Short: "bibify - access the bibify bliography engine from the CLI",
	Long: "bibify provides CLI access and script automation for the bibify bliography engine",

	Run: func(cmd *cobra.Command, args []string) {
	},
}

func Execute() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Fprintf(os.Stderr, "Error: '%s'", err)
		os.Exit(1)
	}
}

A  => go.mod +9 -0
@@ 1,9 @@
module git.sr.ht/~coder_kalyan/bibcli

go 1.19

require (
	github.com/inconshreveable/mousetrap v1.0.0 // indirect
	github.com/spf13/cobra v1.5.0 // indirect
	github.com/spf13/pflag v1.0.5 // indirect
)

A  => go.sum +10 -0
@@ 1,10 @@
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

A  => main.go +7 -0
@@ 1,7 @@
package main

import "git.sr.ht/~coder_kalyan/bibcli/cmd/bibify"

func main() {
	bibify.Execute()
}

A  => pkg/bibify/request.go +1 -0
@@ 1,1 @@
package bibify