mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
add relative path for development and test
This commit is contained in:
parent
408ee95bcc
commit
b86e095a60
3 changed files with 12 additions and 6 deletions
8
bin/mpw
8
bin/mpw
|
@ -8,9 +8,6 @@ require 'pathname'
|
|||
require 'locale'
|
||||
require 'set'
|
||||
require 'i18n'
|
||||
require 'mpw/mpw'
|
||||
require 'mpw/config'
|
||||
require 'mpw/cli'
|
||||
|
||||
# --------------------------------------------------------- #
|
||||
# Set local
|
||||
|
@ -24,6 +21,11 @@ end
|
|||
|
||||
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
||||
|
||||
# TODO
|
||||
require "#{APP_ROOT}/../lib/mpw/mpw.rb"
|
||||
require "#{APP_ROOT}/../lib/mpw/config.rb"
|
||||
require "#{APP_ROOT}/../lib/mpw/ui/cli.rb"
|
||||
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
||||
I18n.load_path = Dir["#{APP_ROOT}/../i18n/cli/*.yml"]
|
||||
I18n.default_locale = :en
|
||||
|
|
|
@ -7,7 +7,9 @@ require 'gpgme'
|
|||
require 'i18n'
|
||||
require 'fileutils'
|
||||
require 'yaml'
|
||||
require 'mpw/item'
|
||||
|
||||
#TODO
|
||||
require "#{APP_ROOT}/../lib/mpw/item.rb"
|
||||
|
||||
module MPW
|
||||
class MPW
|
||||
|
|
|
@ -6,8 +6,10 @@ require 'readline'
|
|||
require 'i18n'
|
||||
require 'colorize'
|
||||
require 'highline/import'
|
||||
require 'mpw/mpw'
|
||||
require 'mpw/item'
|
||||
|
||||
#TODO
|
||||
require "#{APP_ROOT}/../lib/mpw/item.rb"
|
||||
require "#{APP_ROOT}/../lib/mpw/mpw.rb"
|
||||
|
||||
class Cli
|
||||
|
||||
|
|
Loading…
Reference in a new issue