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
+6 -1
View File
@@ -19,10 +19,14 @@ var openCmd = &cobra.Command{
RunE: runOpen,
}
var openAll bool
var (
openAll bool
openForce bool
)
func init() {
openCmd.Flags().BoolVarP(&openAll, "all", "a", false, "Include archived workspaces in query resolution")
openCmd.Flags().BoolVar(&openForce, "force", false, "Skip active-session and stale-workspace warnings")
rootCmd.AddCommand(openCmd)
}
@@ -47,5 +51,6 @@ func runOpen(cmd *cobra.Command, args []string) error {
Mode: ws.Meta.Mode,
Slug: ws.Meta.Slug,
Shell: true, // open always launches shell
Force: openForce,
})
}