generated from jfrog/jfrog-cli-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
33 lines (29 loc) · 970 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Package main constains a plugin for JFrog CLI, the command line interface
// to JFrog Artifactory. This plugin implements several commands realated to
// Conan (https://conan.io) and ConanCenter (https://conan.io/center). Most
// of these commands are intended to manage the Artifactory repository
// where the packages in ConanCenter are stored.
package main
import (
"github.com/jfrog/jfrog-cli-core/plugins"
"github.com/jfrog/jfrog-cli-core/plugins/components"
"github.com/jgsogo/jcli-conan-center/commands"
)
func main() {
plugins.PluginMain(getApp())
}
func getApp() components.App {
app := components.App{}
app.Name = "conan-center"
app.Description = "Manage Conan repository (ConanCenter like)."
app.Version = "v0.1.0"
app.Commands = getCommands()
return app
}
func getCommands() []components.Command {
return []components.Command{
commands.GetSearchCommand(),
commands.GetPropertiesGetCommand(),
commands.GetIndexReferenceCommand(),
}
}