a.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 aCmd = &cobra.Command{
14	Use:   "a",
15	Short: "Archive session",
16	Long:  `Archive the current session`,
17	Run: func(cmd *cobra.Command, args []string) {
18		fmt.Println("[STUB] Archive the current session to database")
19	},
20}
21
22func init() {
23	rootCmd.AddCommand(aCmd)
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	// aCmd.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	// aCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
34}