Rename syncclient "oneOff" functions to be less redundant

This commit is contained in:
2025-12-11 19:34:05 -05:00
parent 941a2dc8b8
commit 35db3bf20b
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func LibmuttonInit(inputCB func(prompt string) string, clientSpecificIniData [][
return errors.New("unable to write config file: " + err.Error())
}
// generate and register device ID
sshEntryRoot, sshAgeDir, sshIsWindows, err := syncclient.DeviceIDGenFromClient(oldDeviceID, "")
sshEntryRoot, sshAgeDir, sshIsWindows, err := syncclient.GenDeviceID(oldDeviceID, "")
if err != nil {
return errors.New("unable to generate device ID: " + err.Error())
}
+1 -1
View File
@@ -33,7 +33,7 @@ func WriteEntry(realPath string, decSlice []string, passwordIsNew bool) error {
return errors.New("unable to update age data: " + err.Error())
}
} else { // if the password change was a removal, remove the associated age file
err = syncclient.ShearRemoteFromClient(global.GetVanityPath(realPath), true)
err = syncclient.ShearRemote(global.GetVanityPath(realPath), true)
if err != nil {
return errors.New("unable to remove age data: " + err.Error())
}