042d316fab
* csConfig.Cscli is always loaded now, configuration paths too * Remove global/singleton hub instance * read {index_path} from config instead of assuming {hub_dir}/.index.json * fix segfault with cscli explain when no parser is installed * cscli: help text * hub download timeout 20 sec * reduce log verbosity * allow func tests with empty hub or pre-download * cscli <itemtype> remove --all --purge
15 lines
333 B
Go
15 lines
333 B
Go
// Package cwhub is responsible for installing and upgrading the local hub files.
|
|
//
|
|
// This includes retrieving the index, the items to install (parsers, scenarios, data files...)
|
|
// and managing the dependencies and taints.
|
|
package cwhub
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
var hubClient = &http.Client{
|
|
Timeout: 20 * time.Second,
|
|
}
|