Skip to content
/ ohp Public

Open Help Page - cli for open web page to help work (cheet sheet, tips ...etc)

License

Notifications You must be signed in to change notification settings

namusic/ohp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Open Help Page - cli for open web page to help work (cheet sheet, tips ...etc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published