Compare commits

...

4 commits

Author SHA1 Message Date
c3217a75e3 feat: start adding support for mappings with encrypted paths
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-08-04 22:58:40 +02:00
df89dd3dfa feat: start implementing MappingCreate 2024-08-04 22:58:09 +02:00
65fe1bf0b9 refactor: remove useless code refering to interactive mode 2024-08-04 22:57:09 +02:00
68934c3be8 fix: disable useless GlobalMapping action 2024-08-04 22:56:01 +02:00
5 changed files with 7 additions and 23 deletions

View file

@ -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

View file

@ -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

View file

@ -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})

View file

@ -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)

View file

@ -7,7 +7,7 @@ module GX::Types
GlobalCompletion
GlobalTui
GlobalConfig
GlobalMapping
# GlobalMapping
ConfigInit