-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ~/.ssh/config custom hosts to connect and find commands #8
Comments
Ok, I understand the request. Maybe we can follow the logic applied to my version of SSH. The file host to read match the pattern config. For example:
The system matches each file contained in a folder with name contains config and the same for the files.
Or maybe we can read a config file and take all files included.
This alternative maybe is more declarative and less prone to errors. |
@CasvalDOT yes, I prefer the first option, we can find valid hosts inside the
But the CLI will only include What do you think? |
I really like the first solution, but in my opinion the second is more robust as it would not generate errors due to the lack of the host |
@valentinocossar, I've created the first possible implementation about this improvement.
I've also tried to optimize the read / parsing process adding goroutines. A nice to have will be discriminated unique host configurations. When you have a moment try it to develop branch. NOTE: This is a first approach. An analysis must be performed to understand which patterns are allowed in the Include syntax.
It is allowed and must be managed? |
@CasvalDOT Super! As far as I know, the most used includes patterns are:
So at this time, we can only support these integrations. But I discovered that in the
The support for the wildcard in each pathname can be a further improvement to consider in the next releases. At this point, I'll test the integration as soon as possible to give you feedback about any improvement or bug. |
Ok! I miss handling the ~ character. |
@valentinocossar, I've push another version. I reduced the logic and using |
👍🏻 I'll test it along with all other features! |
Add
~/.ssh/config
custom hosts to connect and find commands. Allow using custom hosts not added by the sync command but added manually to the~/.ssh/config
file.The text was updated successfully, but these errors were encountered: