Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Default config file #22

Open
MalteKiefer opened this issue Sep 5, 2021 · 1 comment
Open

Default config file #22

MalteKiefer opened this issue Sep 5, 2021 · 1 comment
Labels

Comments

@MalteKiefer
Copy link

Describe the idea

It would be an advantage to have a configuration file where you could write the default in, so you don't have to always give the parameters.

Describe possible implementations

In the HOME directory, look in the .config folder for an efs2 with a file named config.yml.
The structure could be as follows:

verbose: false
ssh_key: ~/.ssh/id_dsa
ssh_port: 2000
ssh_user: root

Maybe it is possible to adjust config/config.go so that it first searches for the config file, and then reads the parameters of the input from the terminal.

@madflojo
Copy link
Owner

madflojo commented Sep 5, 2021

I'm not opposed to maybe creating a .efs2/config file. A lot of what you suggested is available as options in your .ssh/config file but as Efs2's command-line options grow in complexity the .ssh/config wouldn't cover everything (i.e. verbosity, parallel, etc.)

@madflojo madflojo added the todo To Do list label Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants