feat(v0.4): add --force flag on resume, last, and open
This commit is contained in:
+6
-1
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user