Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ghi", Short: fmt.Sprintf("Offline GitHub Issues Client (v%s)", Version), Long: `GHI let's you download issues from a GitHub repo to be made available offline.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { config = LoadConfig() if config.Repo == "" { if len(args) == 0 { fmt.Println(`It looks like you haven't initialized GHI yet! The first time you run GHI you should run "ghi fetch owner/repo". This will fetch all of your issues for that repository. Future calls to "fetch" won't require the "owner/repo" since we'll store a little meta-data file in this repo to track that.`) os.Exit(-1) } else { config.SetFromArgs(args) } } s, err := store.New(config.Owner, config.Repo) if err != nil { fmt.Println(err) os.Exit(-1) } db = s }, }
View Source
var Version = "0.1.0"
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.