Skip to content

syui/xq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

download

$ go get -v github.com/syui/xq

use

$ xq /path/to/rss.xml
[{"title":"Creating a new theme","link":"https://syui.gitlab.io/test-hugo-theme-wave/2016/01/01/creating-a-new-theme/","date":"2018-01-16T00:00:00.000+09:00"}, {"title":"Archive","link":"https://syui.gitlab.io/test-hugo-theme-wave/archive/","date":"2018-01-16T00:00:00.000+09:00"}]

build

$ git clone https://github.com/syui/xq
$ cd xq
$ go build -o xq
$ ./xq h

example

$ curl -sLO https://syui.cf/hugo-theme-air/index.xml

$ xq i ./index.xml
{
  "title": "Creating a new theme",
  "link": "https://syui.gitlab.io/test-hugo-theme-wave/2016/01/01/creating-a-new-theme/",
  "date": "2018-01-16T00:00:00.000+09:00"
}

# latest item link
$ xq l link index.xml
https://syui.gitlab.io/test-hugo-theme-wave/2016/01/01/creating-a-new-theme/

# latest item title
$ xq l title index.xml
Creating a new theme

# latest item publish
$ xq l published index.xml
$ xq p index.xml
2018-01-16T00:00:00.000+09:00

# latest update
$ xq u index.xml
2018-01-16T00:00:00.000+09:00

update

  • 0.2.0 : urfave/cli/v2

  • 0.2.1 : option/[a]ll

  • 0.2.2 : option/[p]ublish

  • 0.2.3 : fix option/[i]tem

  • 0.2.4 : option/none, $ xq file

  • 0.3.0 : option/[l]atest, sub-command/{link, title, published, description}, $ xq l link ./index.xml