mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/ansible-lint
Normal file
29
tldr/ansible-lint
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ansible-lint
|
||||
|
||||
> Apply rules and follow best practices with your automation content.
|
||||
> More information: <https://ansible.readthedocs.io/projects/lint/>.
|
||||
|
||||
- Lint a specific playbook and a role directory:
|
||||
|
||||
`ansible-lint {{path/to/playbook_file}} {{path/to/role_directory}}`
|
||||
|
||||
- Lint a playbook while excluding specific rules:
|
||||
|
||||
`ansible-lint {{[-x|--exclude-rules]}} {{rule1,rule2,...}} {{path/to/playbook_file}}`
|
||||
|
||||
- Lint a playbook in offline mode and format output as PEP8:
|
||||
|
||||
`ansible-lint {{[-o|--offline]}} {{[-p|--parseable]}} {{path/to/playbook_file}}`
|
||||
|
||||
- Lint a playbook using a custom rules directory:
|
||||
|
||||
`ansible-lint {{[-r|--rules]}} {{path/to/custom_rules_directory}} {{path/to/playbook_file}}`
|
||||
|
||||
- Lint all Ansible content recursively in a given directory:
|
||||
|
||||
`ansible-lint {{path/to/project_directory}}`
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cat {{path/to/source.csv}} | duckdb -c "{{COPY (FROM read_csv('/dev/stdin')) TO '/dev/stdout' WITH (FORMAT CSV, HEADER)}}"`
|
||||
|
||||
- Display help:
|
||||
- Start the DuckDB UI, a web interface with notebooks:
|
||||
|
||||
`duckdb -help`
|
||||
`duckdb -ui`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sfdk emulator device-model-show
|
||||
|
||||
> Show emulated device model's properties.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/tree/master/src/tools/sfdk>.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/40-testing-maintain/doc/command.emulator.adoc>.
|
||||
|
||||
- Show a model properties:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sfdk emulator start
|
||||
|
||||
> Starts an emulator.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/tree/master/src/tools/sfdk>.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/40-testing-maintain/doc/command.emulator.adoc>.
|
||||
|
||||
- Start an emulator:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sfdk maintain
|
||||
|
||||
> Launches the interactive SDK Maintenance tool.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/tree/master/src/tools/sfdk>.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/command.maintain.adoc>.
|
||||
|
||||
- Launch SDK Maintenance tool:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sfdk qmltypes
|
||||
|
||||
> Generates qmltypes files.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/tree/master/src/tools/sfdk>.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/80-ide-qmltypes/doc/command.qmltypes.adoc>.
|
||||
|
||||
- Generate qmltypes files:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sfdk scrape
|
||||
|
||||
> Converts source code modifications to patches.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/tree/master/src/tools/sfdk>.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/65-maintaining-mb2/doc/command.scrape.adoc>.
|
||||
|
||||
- Save source modifications as patches:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user