urlselector

command module
v0.0.0-...-e1144c7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

UrlSelector

設定したURLをコマンドラインから選択肢してブラウザで開く

インストール

go get github.com/itkr/urlselector

URLの設定方法

JSONファイルの準備

以下のように、name と url を書いたJSONファイルを作成する。

[
  {
    "name": "Google",
    "url": "https://google.com"
  },
  {
    "name": "Yahoo!",
    "url": "https://yahoo.co.jp"
  }
]
JSONファイルの指定方法

以下の優先順位で設定用JSONファイルが読み込まれます。読み込まれるJSONファイルは一つのみです。

  1. 引数指定
  2. 実行コマンドの実態と同じディレクトリの UrlSelector.json
  3. 環境変数 URLSELECTOR_CONFIG で指定されたファイルパス
  4. ホームディレクトリの UrlSelector.json
実行
urlselector

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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