1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

dep: replace page (#4476)

Replace Go's retired `dep` command with the PHP deployment command from https://deployer.org

Ref: https://github.com/golang/dep#dep
This commit is contained in:
teeteejo 2020-10-09 16:14:28 +01:00 committed by GitHub
parent 1c3164143e
commit de8cb1174e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,33 @@
# dep
> Tool for dependency management in Go projects.
> More information: <https://golang.github.io/dep>.
> A CLI tool for deployment of PHP applications.
> Note: The Go command `dep` with the same name is deprecated and archived.
> More information: <https://deployer.org>.
- Initialize the current directory as the root of a Go project:
- Interactively initialize deployer in the local path (use a framework template with `--template={{template}}`):
`dep init`
- Install any missing dependencies (Scans Gopkg.toml and your .go files):
- Deploy an application to a remote host:
`dep ensure`
`dep deploy {{hostname}}`
- Report the status of the project's dependencies:
- Rollback to the previous working release:
`dep status`
`dep rollback`
- Add a dependency to the project:
- Connect to a remote host via ssh:
`dep ensure -add {{package_url}}`
`dep ssh {{hostname}}`
- Update the locked versions of all dependencies:
- List commands:
`dep ensure -update`
`dep list`
- Run any arbitrary command on the remote hosts:
`dep run "{{command}}"`
- Display help for a command:
`dep help {{command}}`