bastion 0.60.0
ci / personal-data (push) Successful in 4s
ci / test (push) Successful in 3m36s
ci / fuzz (push) Successful in 3m35s

This commit is contained in:
Privatae
2026-11-02 00:10:58 +00:00
parent 4a5c310482
commit 4f8285ef18
100 changed files with 11537 additions and 840 deletions
+4 -4
View File
@@ -15,12 +15,12 @@ import (
)
// cmdStepupDrop revokes one unused approval this box issued for a pairing.
func cmdStepupDrop(host, prefix string) error {
cfg, err := stepupPairing(host)
func cmdStepupDrop(host string, machine bool, prefix string) error {
t, err := resolveStepupTarget(host, machine)
if err != nil {
return err
}
dir := cfg.dcnDir()
dir := t.dir
prefix = strings.TrimSpace(prefix)
if prefix == "" {
return errors.New("which approval? (the id `approve` printed)")
@@ -36,7 +36,7 @@ func cmdStepupDrop(host, prefix string) error {
}
switch len(hits) {
case 0:
return fmt.Errorf("no unused approval starts with %q for %s", prefix, cfg.HostName)
return fmt.Errorf("no unused approval starts with %q %s", prefix, t.forWhom())
case 1:
default:
return fmt.Errorf("%d approvals start with %q — give more of the id", len(hits), prefix)