|
@@ -43,7 +43,8 @@ func NewCollectionsCmd() *cobra.Command {
|
|
|
Args: cobra.MinimumNArgs(1),
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
if err := cwhub.GetHubIdx(csConfig.Cscli); err != nil {
|
|
|
- log.Fatalf("failed to get Hub index : %v", err)
|
|
|
+ log.Fatalf("Failed to get Hub index : %v", err)
|
|
|
+ log.Infoln("Run 'sudo cscli hub update' to get the hub index")
|
|
|
}
|
|
|
for _, name := range args {
|
|
|
InstallItem(name, cwhub.COLLECTIONS, forceInstall)
|
|
@@ -63,6 +64,7 @@ func NewCollectionsCmd() *cobra.Command {
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
if err := cwhub.GetHubIdx(csConfig.Cscli); err != nil {
|
|
|
log.Fatalf("Failed to get Hub index : %v", err)
|
|
|
+ log.Infoln("Run 'sudo cscli hub update' to get the hub index")
|
|
|
}
|
|
|
|
|
|
if removeAll {
|
|
@@ -87,6 +89,7 @@ func NewCollectionsCmd() *cobra.Command {
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
if err := cwhub.GetHubIdx(csConfig.Cscli); err != nil {
|
|
|
log.Fatalf("Failed to get Hub index : %v", err)
|
|
|
+ log.Infoln("Run 'sudo cscli hub update' to get the hub index")
|
|
|
}
|
|
|
if upgradeAll {
|
|
|
UpgradeConfig(cwhub.COLLECTIONS, "", forceUpgrade)
|
|
@@ -109,7 +112,8 @@ func NewCollectionsCmd() *cobra.Command {
|
|
|
Args: cobra.MinimumNArgs(1),
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
if err := cwhub.GetHubIdx(csConfig.Cscli); err != nil {
|
|
|
- log.Fatalf("failed to get Hub index : %v", err)
|
|
|
+ log.Fatalf("Failed to get Hub index : %v", err)
|
|
|
+ log.Infoln("Run 'sudo cscli hub update' to get the hub index")
|
|
|
}
|
|
|
for _, name := range args {
|
|
|
InspectItem(name, cwhub.COLLECTIONS)
|
|
@@ -127,7 +131,8 @@ func NewCollectionsCmd() *cobra.Command {
|
|
|
Args: cobra.ExactArgs(0),
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
if err := cwhub.GetHubIdx(csConfig.Cscli); err != nil {
|
|
|
- log.Fatalf("failed to get Hub index : %v", err)
|
|
|
+ log.Fatalf("Failed to get Hub index : %v", err)
|
|
|
+ log.Infoln("Run 'sudo cscli hub update' to get the hub index")
|
|
|
}
|
|
|
ListItem(cwhub.COLLECTIONS, args)
|
|
|
},
|