feat(v0.4): add --force flag on resume, last, and open

This commit is contained in:
2026-04-21 17:07:04 -04:00
parent 25b2b46171
commit 67138584d4
3 changed files with 14 additions and 4 deletions
+3 -1
View File
@@ -20,11 +20,13 @@ var lastCmd = &cobra.Command{
var (
lastShell bool
lastAgent string
lastForce bool
)
func init() {
lastCmd.Flags().BoolVar(&lastShell, "shell", false, "Open shell instead of agent")
lastCmd.Flags().StringVarP(&lastAgent, "agent", "a", "", "Override agent command")
lastCmd.Flags().BoolVar(&lastForce, "force", false, "Skip active-session and stale-workspace warnings")
rootCmd.AddCommand(lastCmd)
}
@@ -40,5 +42,5 @@ func runLast(cmd *cobra.Command, args []string) error {
os.Exit(1)
}
return doResume(best.Meta.Slug, false, lastShell, lastAgent)
return doResume(best.Meta.Slug, false, lastShell, lastForce, lastAgent)
}