feat(v0.5.3): shared workspace-entry helper; resume + last delegate; fresh_remote prompt
This commit is contained in:
+6
-4
@@ -18,15 +18,17 @@ var lastCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
var (
|
||||
lastShell bool
|
||||
lastAgent string
|
||||
lastForce bool
|
||||
lastShell bool
|
||||
lastAgent string
|
||||
lastForce bool
|
||||
lastDirect 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")
|
||||
lastCmd.Flags().BoolVar(&lastDirect, "direct", false, "Bypass persistent session mode for this command")
|
||||
rootCmd.AddCommand(lastCmd)
|
||||
}
|
||||
|
||||
@@ -42,5 +44,5 @@ func runLast(cmd *cobra.Command, args []string) error {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
return doResume(best.Meta.Slug, false, lastShell, lastForce, lastAgent)
|
||||
return doResume(best.Meta.Slug, false, lastShell, lastForce, lastAgent, lastDirect)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user