r.go

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