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
|
module GX::Commands
|
||||||
class MappingCreate < AbstractCommand
|
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
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
# FIXME: implement
|
# FIXME: implement
|
||||||
|
puts "mapping create yo!"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.handles_mode
|
def self.handles_mode
|
||||||
|
|
|
@ -37,7 +37,7 @@ module GX::Parsers
|
||||||
|
|
||||||
# Filesystem specific
|
# Filesystem specific
|
||||||
parser.on("--encrypted-path PATH", "Set encrypted path (for gocryptfs)") do |path|
|
parser.on("--encrypted-path PATH", "Set encrypted path (for gocryptfs)") do |path|
|
||||||
encrypted_path = path
|
create_args = create_args.merge({encrypted_path: path})
|
||||||
end
|
end
|
||||||
parser.on("--remote-user USER", "Set SSH user (for sshfs)") do |user|
|
parser.on("--remote-user USER", "Set SSH user (for sshfs)") do |user|
|
||||||
create_args = create_args.merge({remote_user: user})
|
create_args = create_args.merge({remote_user: user})
|
||||||
|
|
|
@ -64,10 +64,6 @@ module GX::Parsers
|
||||||
Parsers::MappingParser.new.build(parser, breadcrumbs, config)
|
Parsers::MappingParser.new.build(parser, breadcrumbs, config)
|
||||||
end
|
end
|
||||||
|
|
||||||
# parser.on("interactive", "Interactive mapping mount/umount") do
|
|
||||||
# abort("FIXME: Not implemented")
|
|
||||||
# end
|
|
||||||
|
|
||||||
parser.on("completion", "Manage completion") do
|
parser.on("completion", "Manage completion") do
|
||||||
config.mode = Types::Mode::GlobalCompletion
|
config.mode = Types::Mode::GlobalCompletion
|
||||||
Parsers::CompletionParser.new.build(parser, breadcrumbs, config)
|
Parsers::CompletionParser.new.build(parser, breadcrumbs, config)
|
||||||
|
|
|
@ -7,7 +7,7 @@ module GX::Types
|
||||||
GlobalCompletion
|
GlobalCompletion
|
||||||
GlobalTui
|
GlobalTui
|
||||||
GlobalConfig
|
GlobalConfig
|
||||||
GlobalMapping
|
# GlobalMapping
|
||||||
|
|
||||||
ConfigInit
|
ConfigInit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue