ohp

command module
v0.0.0-...-17fb7ec Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

CircleCI

OHP

ohp is command to open recorded page(url) on browser

Architecture

recorded page is managed in ${HOME}/.ohp file(default) ohp command reads and writes to this file.

Install

  1. Download this repository
  2. execute make command

※ you need to set up go env in advance

Usage

list

open recorded page list

$ ohp list

 --------------------------------------------
 |  name  |    tag     |       url          |
 | google | search     | https://google.com |
 | amazon | e-commarce | https://amazon.com |
 --------------------------------------------

insert

record new page

$ ohp insert -n yahoo -t search -u https://yahoo.com
$ ohp list

 --------------------------------------------
 |  name  |    tag     |       url          |
 | yahoo  | search     | https://yahoo.com  |
 | google | search     | https://google.com |
 | amazon | e-commarce | https://amazon.com |
 --------------------------------------------

※ can't allocate multiple tags or urls in a row

open

open recorded url with matching tag or name flag on browser


$ ohp list

 --------------------------------------------
 |  name  |    tag     |       url          |
 | yahoo  | search     | https://yahoo.com  |
 | google | search     | https://google.com |
 | amazon | e-commarce | https://amazon.com |
 --------------------------------------------

$ ohp open -n Google
-> open browser and open "https://google.com"
$ ohp open -t search
-> open browser and open "https://google.com" and "https://yahoo.com"
delete

delete page with matching tag or name flag

$ ohp list
 --------------------------------------------
 |  name  |    tag     |       url          |
 | yahoo  | search     | https://yahoo.com  |
 | google | search     | https://google.com |
 | amazon | e-commarce | https://amazon.com |
 --------------------------------------------

$ ohp delete -t search
$ ohp list

 --------------------------------------------
 |  name  |    tag     |       url          |
 | amazon | e-commarce | https://amazon.com |
 --------------------------------------------

$ ohp delete -n amazon

$ ohp list
-> none

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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