Compare commits
2 commits
be8980b74c
...
bb5941a86a
Author | SHA1 | Date | |
---|---|---|---|
bb5941a86a | |||
1a5c2cd223 |
6 changed files with 36 additions and 4 deletions
|
@ -2,7 +2,7 @@ require "./abstract_command"
|
||||||
|
|
||||||
module GX::Commands
|
module GX::Commands
|
||||||
class GlobalConfig < AbstractCommand
|
class GlobalConfig < AbstractCommand
|
||||||
def initialize(config : GX::Config) # FIXME
|
def initialize(config : GX::Config)
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
|
|
@ -2,7 +2,7 @@ require "./abstract_command"
|
||||||
|
|
||||||
module GX::Commands
|
module GX::Commands
|
||||||
class GlobalHelp < AbstractCommand
|
class GlobalHelp < AbstractCommand
|
||||||
def initialize(@config : GX::Config) # FIXME
|
def initialize(@config : GX::Config)
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
|
|
@ -5,7 +5,7 @@ module GX::Commands
|
||||||
class MappingMount < AbstractCommand
|
class MappingMount < AbstractCommand
|
||||||
@file_system_manager : FileSystemManager
|
@file_system_manager : FileSystemManager
|
||||||
|
|
||||||
def initialize(@config : GX::Config) # FIXME
|
def initialize(@config : GX::Config)
|
||||||
@config.load_from_env
|
@config.load_from_env
|
||||||
@config.load_from_file
|
@config.load_from_file
|
||||||
@file_system_manager = FileSystemManager.new(@config)
|
@file_system_manager = FileSystemManager.new(@config)
|
||||||
|
|
|
@ -5,7 +5,7 @@ module GX::Commands
|
||||||
class MappingUmount < AbstractCommand
|
class MappingUmount < AbstractCommand
|
||||||
@file_system_manager : FileSystemManager
|
@file_system_manager : FileSystemManager
|
||||||
|
|
||||||
def initialize(@config : GX::Config) # FIXME
|
def initialize(@config : GX::Config)
|
||||||
@config.load_from_env
|
@config.load_from_env
|
||||||
@config.load_from_file
|
@config.load_from_file
|
||||||
@file_system_manager = FileSystemManager.new(@config)
|
@file_system_manager = FileSystemManager.new(@config)
|
||||||
|
|
0
static/completion.zsh
Normal file
0
static/completion.zsh
Normal file
32
static/sample.mfm.yaml
Normal file
32
static/sample.mfm.yaml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
version: 1
|
||||||
|
|
||||||
|
global:
|
||||||
|
mount_point_base: "{{env.HOME}}/mnt"
|
||||||
|
|
||||||
|
filesystems:
|
||||||
|
##
|
||||||
|
## Sample configuration for encrypted vault (gocryptfs)
|
||||||
|
##
|
||||||
|
# - type: gocryptfs
|
||||||
|
# name: "Credential Vault"
|
||||||
|
# encrypted_path: "{{env.HOME}}/Documents/Credential.Vault"
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Sample configuration remote SSH directory (sshfs)
|
||||||
|
##
|
||||||
|
# - type: sshfs
|
||||||
|
# name: "Remote SSH server"
|
||||||
|
# remote_host: ssh.example.com
|
||||||
|
# remote_user: "{{env.USER}}"
|
||||||
|
# remote_path: "/home/{{env.USER}}"
|
||||||
|
# remote_port: 443
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Sample configuration for remote HTTP directory (httpdirfs)
|
||||||
|
##
|
||||||
|
- type: httpdirfs
|
||||||
|
name: "Debian Repository"
|
||||||
|
url: "http://ftp.debian.org/debian/"
|
||||||
|
# mount_point: "{{env.HOME}}/another.dir"
|
||||||
|
#
|
Loading…
Reference in a new issue