File: cache.go

package info (click to toggle)
gittuf 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,692 kB
  • sloc: python: 85; makefile: 58; sh: 1
file content (24 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright The gittuf Authors
// SPDX-License-Identifier: Apache-2.0

package cache

import (
	"github.com/gittuf/gittuf/internal/cmd/cache/delete"
	i "github.com/gittuf/gittuf/internal/cmd/cache/init"
	"github.com/spf13/cobra"
)

func New() *cobra.Command {
	cmd := &cobra.Command{
		Use:               "cache",
		Short:             "Manage gittuf's caching functionality",
		Long:              `The 'cache' command group contains subcommands to manage gittuf's local persistent cache. This cache helps improve performance by storing metadata locally. The cache is local-only and is not synchronized with remote repositories.`,
		DisableAutoGenTag: true,
	}

	cmd.AddCommand(i.New())
	cmd.AddCommand(delete.New())

	return cmd
}