Skip to content

Commit

Permalink
feat: Refactor CLI config-ssh to improve UX (#1900)
Browse files Browse the repository at this point in the history
- Magic block is replaced by Include statement
- Writes are only done on changes
- Inform user of changes via prompt
- Allow displaying changes via `--diff`
- Remove magic block if present
- Safer config writing via tmp-file + rename
- Parse previous `config-ssh` options, compare to new options and ask to use new (otherwise old ones are used)
- Tests the new functionality

Fixes #1326
  • Loading branch information
mafredri committed Jun 8, 2022
1 parent 945fa9d commit b65259f
Show file tree
Hide file tree
Showing 5 changed files with 942 additions and 96 deletions.

0 comments on commit b65259f

Please sign in to comment.