2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

go-cve-dictionaryとgoval-dictonaryの引数を環境変数で設定する

Posted at

はじめに

go-cve-dictionarygoval-dictonary には、引数を環境変数で指定できるという隠し機能があります。

使い方

go-cve-dictionary

  • 環境変数設定
$ export GO_CVE_DICTIONARY_ARGS='fetchjvn -last2y'
  • 実行
$ go-cve-dictionary

goval-dictionary

  • 環境変数設定
$ export GOVAL_DICTIONARY_ARGS='fetch-debian 7 8 9 10'
  • 実行
$ goval-dictionary

何がうれしいの?

lambdaで実行する時に環境変数で指定できるのはいいですよね。
コードを変更することなく、取得するデータのレンジを変更できるので。

以上でした。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?