custom pwd file path
This commit is contained in:
parent
51a09ffe61
commit
0ce3e506bb
@ -6,6 +6,9 @@
|
||||
- ℹ️ - Information
|
||||
- ♻️ - Edited
|
||||
|
||||
## 0.2.6 - [03/08/2022]
|
||||
- ➕ - Added enviopment variable for custom password path
|
||||
|
||||
## 0.2.5 - [31/07/2022]
|
||||
- ➕ - Added timeout user input
|
||||
- ♻️ - Source file separated
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: pmng
|
||||
version: 0.2.5
|
||||
version: 0.2.6
|
||||
|
||||
authors:
|
||||
- Alexander Popov <iiiypuk@iiiypuk.me>
|
||||
|
@ -1,3 +1,13 @@
|
||||
def password_file
|
||||
begin
|
||||
file_path = "#{ENV["PMNG_PWD_FILE"]}"
|
||||
file_path.to_s
|
||||
rescue KeyError
|
||||
file_path = "#{ENV["HOME"]}/.pwd.yml"
|
||||
file_path.to_s
|
||||
end
|
||||
end
|
||||
|
||||
VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }}
|
||||
PASSWORD_FILE_PATH = "#{ENV["HOME"]}/.pwd.yml"
|
||||
PASSWORD_FILE_PATH = password_file()
|
||||
USER_INPUT_TIMEOUT = 60
|
||||
|
@ -1,4 +1,6 @@
|
||||
module Pmng::Functions
|
||||
extend self
|
||||
|
||||
class Statistics
|
||||
getter passwords : Array(Password)
|
||||
getter outdated : Int32
|
||||
|
Loading…
Reference in New Issue
Block a user