treview

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: MIT Imports: 1 Imported by: 0

README

treview

codecov CircleCI

Viewer for GitHub Trending.

treview

Feature

  • shows only today's newcomer repository.(You never see same project everyday!)
  • define default langage that you want to see.

Install

$ go get github.com/inabajunmr/treview

Usage

$ treview -h
Usage:
  treview is cli viewer for GitHub Trending. [flags]
  treview [command]

Available Commands:
  config      Setting for default langage configration.
  help        Help about any command

Flags:
  -f, --filter string   all or new (default "new")
  -h, --help            help for treview
  -l, --lang string     filter by lang
  -s, --span string     trending span (default "Today")

Use "treview [command] --help" for more information about a command.

Config

If you have file ~/.treview/.config, you can set default lang by treview. You can set config by treview config command too.

treview

Example

If you have following config, treview show only Golang and JavaScript repositories by treview command (without lang flag).

lang:  [go, javascript]

If you want to find all langage, you set all as lang flag.

GoDoc

Sample

package main

import (
	"fmt"
	"github.com/inabajunmr/treview/github/trending"
)

func main() {
	span := trending.GetSpanByString("today")

	repos, err := trending.FindTrending(l, span)
	if err != nil {
		println(err)
		os.Exit(1)
	}

	for _, repo := range repos {
		fmt.Println("------------------------")
		repo.Print()
	}
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
github

Jump to

Keyboard shortcuts

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