Clean up README and add update command

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/7/head
jolheiser 2021-02-27 22:40:27 -06:00
parent fd2e2d0be9
commit 472ba97d1e
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 5 additions and 6 deletions

View File

@ -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 * `remove` - Remove a local package
* `list` - List local packages * `list` - List local packages
* `config` - Change local configuration * `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 * `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` - Start a gpm server
### 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. 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. 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 ## License

View File

@ -29,6 +29,7 @@ func New() *cli.App {
&Remove, &Remove,
&Search, &Search,
&Server, &Server,
&Update,
} }
app.Flags = []cli.Flag{ app.Flags = []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{