mirror of
https://github.com/ericchiang/pup
synced 2025-02-05 20:31:26 +00:00
+ and > are now correct
This commit is contained in:
parent
6fee0ebe20
commit
c9b88c1354
6
pup.go
6
pup.go
@ -17,7 +17,7 @@ import (
|
|||||||
// |/ \_( # |"
|
// |/ \_( # |"
|
||||||
// C/ ,--___/
|
// C/ ,--___/
|
||||||
|
|
||||||
var VERSION string = "0.3.5"
|
var VERSION string = "0.3.6"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// process flags and arguments
|
// process flags and arguments
|
||||||
@ -55,9 +55,9 @@ func main() {
|
|||||||
switch cmd {
|
switch cmd {
|
||||||
case "*": // select all
|
case "*": // select all
|
||||||
continue
|
continue
|
||||||
case "+":
|
|
||||||
funcGenerator = SelectFromChildren
|
|
||||||
case ">":
|
case ">":
|
||||||
|
funcGenerator = SelectFromChildren
|
||||||
|
case "+":
|
||||||
funcGenerator = SelectNextSibling
|
funcGenerator = SelectNextSibling
|
||||||
case ",": // nil will signify a comma
|
case ",": // nil will signify a comma
|
||||||
selectorFuncs = append(selectorFuncs, nil)
|
selectorFuncs = append(selectorFuncs, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user