Clean up README and add update command
Signed-off-by: jolheiser <john.olheiser@gmail.com>pull/7/head
parent
fd2e2d0be9
commit
472ba97d1e
10
README.md
10
README.md
|
@ -17,21 +17,19 @@ Using either a GPM server or local config, I can instead `gpm get cli` which fin
|
|||
* `remove` - Remove a local package
|
||||
* `list` - List local packages
|
||||
* `config` - Change local configuration
|
||||
* `export` - Export local packages to JSON
|
||||
* `import` - Import JSON to local packages. Either give a path to a `.json` file, or a URL to a GPM server
|
||||
* e.g. `https://gpm.jolheiser.com`
|
||||
* `get` - Get a list of packages
|
||||
* e.g. `gpm get beaver survey toml homedir cli chi` to get all the modules needed for gpm itself (assuming the map resolves to the same packages)
|
||||
* e.g. `gpm get beaver survey bbolt cli chi` to get all the modules needed for gpm itself (assuming the map resolves to the same packages)
|
||||
* `server` - Start a gpm server
|
||||
|
||||
|
||||
### Server
|
||||
|
||||
If GPM doesn't find a package locally, it can call out to a configurable gpm server to find a package there instead.
|
||||
gpm will call out to a gpm server to find a package.
|
||||
This makes it much simpler to have a central library of packages rather than exporting and importing between environments.
|
||||
|
||||
Want to run your own server? It's very easy! This CLI comes packaged with the server inside, simply run `gpm server` to start up a GPM server.
|
||||
Put it behind your favorite reverse proxy and it's ready to go!
|
||||
Remember to set a `--token`!
|
||||
Put it behind your favorite reverse proxy, and it's ready to go!
|
||||
|
||||
|
||||
## License
|
||||
|
|
|
@ -29,6 +29,7 @@ func New() *cli.App {
|
|||
&Remove,
|
||||
&Search,
|
||||
&Server,
|
||||
&Update,
|
||||
}
|
||||
app.Flags = []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
|
|
Loading…
Reference in New Issue