cmd

package
v4.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "github-nippou",
	Short: "Print today's your GitHub activity for issues and pull requests",
	Run: func(cmd *cobra.Command, args []string) {
		list, err := lib.NewListFromCLI(sinceDate, untilDate, debug)
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}

		lines, err := list.Collect()
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}

		fmt.Println(lines)
	},
}

RootCmd defines a root command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL