r.go

 1// Copyright © 2025 NAME HERE <EMAIL ADDRESS>
 2// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 3//
 4// SPDX-License-Identifier: AGPL-3.0-or-later
 5
 6package cmd
 7
 8import (
 9	"fmt"
10
11	"github.com/spf13/cobra"
12)
13
14var rCmd = &cobra.Command{
15	Use:   "r",
16	Short: "Resume session",
17	Long:  `Resume an interrupted session in a new context window`,
18	Run: func(cmd *cobra.Command, args []string) {
19		fmt.Println("[STUB] Resume interrupted session from database")
20	},
21}
22
23func init() {
24	rootCmd.AddCommand(rCmd)
25
26	// Here you will define your flags and configuration settings.
27
28	// Cobra supports Persistent Flags which will work for this command
29	// and all subcommands, e.g.:
30	// rCmd.PersistentFlags().String("foo", "", "A help for foo")
31
32	// Cobra supports local flags which will only run when this command
33	// is called directly, e.g.:
34	// rCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
35}