mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 02:52:51 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# go test
|
# go test
|
||||||
|
|
||||||
> Tests Go packages (files have to end with `_test.go`).
|
> Tests Go packages (files have to end with `_test.go`).
|
||||||
> More information: <https://golang.org/cmd/go/#hdr-Testing_flags>.
|
> More information: <https://pkg.go.dev/cmd/go#hdr-Testing_flags>.
|
||||||
|
|
||||||
- Test the package found in the current directory:
|
- Test the package found in the current directory:
|
||||||
|
|
||||||
|
|||||||
34
tldr/hatch
Normal file
34
tldr/hatch
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# hatch
|
||||||
|
|
||||||
|
> Modern, extensible Python project manager.
|
||||||
|
> See also: `poetry`.
|
||||||
|
> More information: <https://hatch.pypa.io/latest/cli/reference/>.
|
||||||
|
|
||||||
|
- Create a new Hatch project:
|
||||||
|
|
||||||
|
`hatch new {{project_name}}`
|
||||||
|
|
||||||
|
- Initialize Hatch for an existing project:
|
||||||
|
|
||||||
|
`hatch new --init`
|
||||||
|
|
||||||
|
- Build a Hatch project:
|
||||||
|
|
||||||
|
`hatch build`
|
||||||
|
|
||||||
|
- Remove build artifacts:
|
||||||
|
|
||||||
|
`hatch clean`
|
||||||
|
|
||||||
|
- Create a default environment with dependencies defined in the `pyproject.toml` file:
|
||||||
|
|
||||||
|
`hatch env create`
|
||||||
|
|
||||||
|
- Show environment dependencies as a table:
|
||||||
|
|
||||||
|
`hatch dep show table`
|
||||||
12
tldr/npm-author
Normal file
12
tldr/npm-author
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# npm-author
|
||||||
|
|
||||||
|
> This command is an alias of `npm owner`.
|
||||||
|
|
||||||
|
- View documentation for the original command:
|
||||||
|
|
||||||
|
`tldr npm owner`
|
||||||
21
tldr/npm-owner
Normal file
21
tldr/npm-owner
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# npm-owner
|
||||||
|
|
||||||
|
> Manage ownership of published packages.
|
||||||
|
> More information: <https://docs.npmjs.com/cli/commands/npm-owner>.
|
||||||
|
|
||||||
|
- Add a new user as a maintainer of a package:
|
||||||
|
|
||||||
|
`npm owner add {{username}} {{package_name}}`
|
||||||
|
|
||||||
|
- Remove a user from a package's owner list:
|
||||||
|
|
||||||
|
`npm owner rm {{username}} {{package_name}}`
|
||||||
|
|
||||||
|
- List all owners of a package:
|
||||||
|
|
||||||
|
`npm owner ls {{package_name}}`
|
||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# stripe
|
# stripe
|
||||||
|
|
||||||
> Interact with a Stripe account.
|
> Interact with a Stripe account.
|
||||||
> More information: <https://github.com/stripe/stripe-cli>.
|
> More information: <https://docs.stripe.com/stripe-cli>.
|
||||||
|
|
||||||
- Follow the logs of activity on the account:
|
- Follow the logs of activity on the account:
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# terraform plan
|
# terraform plan
|
||||||
|
|
||||||
> Generate and show Terraform execution plans.
|
> Generate and show Terraform execution plans.
|
||||||
> More information: <https://www.terraform.io/docs/cli/commands/plan.html>.
|
> More information: <https://developer.hashicorp.com/terraform/cli/commands/plan>.
|
||||||
|
|
||||||
- Generate and show the execution plan in the currently directory:
|
- Generate and show the execution plan in the currently directory:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user