Compare commits
4 commits
26510531e7
...
c3217a75e3
Author | SHA1 | Date | |
---|---|---|---|
c3217a75e3 | |||
df89dd3dfa | |||
65fe1bf0b9 | |||
68934c3be8 |
5 changed files with 7 additions and 23 deletions
|
@ -1,16 +0,0 @@
|
|||
require "./abstract_command"
|
||||
|
||||
module GX::Commands
|
||||
class GlobalMapping < AbstractCommand
|
||||
def initialize(config : GX::Config) # FIXME
|
||||
end
|
||||
|
||||
def execute
|
||||
# FIXME: implement
|
||||
end
|
||||
|
||||
def self.handles_mode
|
||||
GX::Types::Mode::GlobalMapping
|
||||
end
|
||||
end
|
||||
end
|
|
@ -2,11 +2,15 @@ require "./abstract_command"
|
|||
|
||||
module GX::Commands
|
||||
class MappingCreate < AbstractCommand
|
||||
def initialize(config : GX::Config) # FIXME
|
||||
def initialize(@config : GX::Config) # FIXME
|
||||
@config.load_from_env
|
||||
@config.load_from_file
|
||||
@file_system_manager = FileSystemManager.new(@config)
|
||||
end
|
||||
|
||||
def execute
|
||||
# FIXME: implement
|
||||
puts "mapping create yo!"
|
||||
end
|
||||
|
||||
def self.handles_mode
|
||||
|
|
|
@ -37,7 +37,7 @@ module GX::Parsers
|
|||
|
||||
# Filesystem specific
|
||||
parser.on("--encrypted-path PATH", "Set encrypted path (for gocryptfs)") do |path|
|
||||
encrypted_path = path
|
||||
create_args = create_args.merge({encrypted_path: path})
|
||||
end
|
||||
parser.on("--remote-user USER", "Set SSH user (for sshfs)") do |user|
|
||||
create_args = create_args.merge({remote_user: user})
|
||||
|
|
|
@ -64,10 +64,6 @@ module GX::Parsers
|
|||
Parsers::MappingParser.new.build(parser, breadcrumbs, config)
|
||||
end
|
||||
|
||||
# parser.on("interactive", "Interactive mapping mount/umount") do
|
||||
# abort("FIXME: Not implemented")
|
||||
# end
|
||||
|
||||
parser.on("completion", "Manage completion") do
|
||||
config.mode = Types::Mode::GlobalCompletion
|
||||
Parsers::CompletionParser.new.build(parser, breadcrumbs, config)
|
||||
|
|
|
@ -7,7 +7,7 @@ module GX::Types
|
|||
GlobalCompletion
|
||||
GlobalTui
|
||||
GlobalConfig
|
||||
GlobalMapping
|
||||
# GlobalMapping
|
||||
|
||||
ConfigInit
|
||||
|
||||
|
|
Loading…
Reference in a new issue