Skip to content

Partial updates#24

Merged
cezmunsta merged 3 commits into
masterfrom
partial-updates
May 6, 2021
Merged

Partial updates#24
cezmunsta merged 3 commits into
masterfrom
partial-updates

Conversation

@cezmunsta
Copy link
Copy Markdown
Owner

Added the update command to support partial updates.

When an existing connection is detected then the update will take place, however if one is not found then the user will be directed to use the write command instead, and vice versa. Update of the comment is supported with this.

  • Added cmd.updateConnection to handle partial updates, which
    will currently fail when an existing connection is not found and
    directs the user to use write
  • Updated cmd.writeConnection to fail when an existing connection
    is found an directs the user to use update
  • Added cmd.updateCmd and added support for --comment with it

Addition changes:

  • Added config.EnvSSHDefaultUsername, with the default set to
    os.Getenv("USER")
  • Updated config.Settings to add EnvSSHDefaultUsername
  • Fixed issue in ssh.setIdentity where the default key path
    was static
  • Fixed outdated overrides in Makefile following refactor

Addresses #5

cezmunsta added 3 commits May 6, 2021 16:38
* Added `config.EnvSSHDefaultUsername`, with the default set to
  `os.Getenv("USER")`
* Updated `config.Settings` to add `EnvSSHDefaultUsername`
* Fixed issue in `ssh.setIdentity` where the default key path
  was static
* Fixed outdated overrides in `Makefile` following refactor
* Added `cmd.updateConnection` to handle partial updates, which
  will currently fail when an existing connection is not found and
  directs the user to use `write`
* Updated `cmd.writeConnection` to fail when an existing connection
  is found an directs the user to use `update`
* Added `cmd.updateCmd` and added support for `--comment` with it
* Updated the message in `cmd` for `Debugf`
* Fixed typo in `--comment` help for `updateCmd`
@cezmunsta cezmunsta added bug Something isn't working enhancement New feature or request labels May 6, 2021
@cezmunsta cezmunsta self-assigned this May 6, 2021
@cezmunsta cezmunsta merged commit 3f09f7d into master May 6, 2021
@cezmunsta cezmunsta deleted the partial-updates branch May 6, 2021 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant