diff --git a/tldr/bear b/tldr/bear new file mode 100644 index 00000000..21fd8bd7 --- /dev/null +++ b/tldr/bear @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bear + +> A tool to generate compilation databases for `clang` tooling. +> More information: . + +- Generate `compile_commands.json` by running a build command: + +`bear -- {{make}}` + +- Generate compilation database with a custom output file name: + +`bear --output {{path/to/compile_commands.json}} -- {{make}}` + +- Append results to an existing `compile_commands.json` file: + +`bear --append -- {{make}}` + +- Run in verbose mode to get detailed output: + +`bear --verbose -- {{make}}` + +- Force `bear` to use the preload method for command interception: + +`bear --force-preload -- {{make}}` diff --git a/tldr/cdecl b/tldr/cdecl new file mode 100644 index 00000000..cc5cfad3 --- /dev/null +++ b/tldr/cdecl @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cdecl + +> Compose and decode C and C++ type declarations. +> More information: . + +- Compose English phrase into C declaration, and create [c]ompilable output (include `;` and `{}`): + +`cdecl -c {{phrase}}` + +- Explain C declaration in English: + +`cdecl explain {{C_declaration}}` + +- Cast a variable to another type: + +`cdecl cast {{variable_name}} to {{type}}` + +- Run in [i]nteractive mode: + +`cdecl -i` diff --git a/tldr/fastfetch b/tldr/fastfetch index 714f2308..3005d8ad 100644 --- a/tldr/fastfetch +++ b/tldr/fastfetch @@ -12,10 +12,6 @@ source: https://github.com/tldr-pages/tldr.git `fastfetch` -- Display system information without a logo and escape sequences: - -`fastfetch --pipe` - - Fetch a specific structure: `fastfetch --structure {{structure}}` @@ -28,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git `fastfetch --logo {{logo}}` +- Display system information without a logo: + +`fastfetch --logo none` + - Use a specific color for the keys and title: `fastfetch --color {{blue}}` diff --git a/tldr/lambo-new b/tldr/lambo-new index 59bb165d..ca0310d7 100644 --- a/tldr/lambo-new +++ b/tldr/lambo-new @@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `lambo new --{{vue|bootstrap|react}} {{app_name}}` -- Install npm dependencies after the project has been created: +- Install `npm` dependencies after the project has been created: `lambo new --node {{app_name}}` diff --git a/tldr/linux/links2 b/tldr/linux/links2 new file mode 100644 index 00000000..5e124d09 --- /dev/null +++ b/tldr/linux/links2 @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# links2 + +> Command-line web browser. +> See also: `links`. +> More information: . + +- Visit a website in graphics mode: + +`links2 -g {{https://example.com}}` diff --git a/tldr/ncu b/tldr/ncu index a43a23ff..78e998d1 100644 --- a/tldr/ncu +++ b/tldr/ncu @@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git `ncu` -- List outdated global npm packages: +- List outdated global `npm` packages: `ncu --global` diff --git a/tldr/npm b/tldr/npm index f46df724..98983ac8 100644 --- a/tldr/npm +++ b/tldr/npm @@ -33,10 +33,10 @@ source: https://github.com/tldr-pages/tldr.git `npm uninstall {{package_name}}` -- List of locally installed dependencies: +- List all locally installed dependencies: `npm list` -- List top-level globally installed packages: +- List all top-level globally installed packages: `npm list {{-g|--global}} --depth {{0}}` diff --git a/tldr/npm-doctor b/tldr/npm-doctor index 14a58b2c..1d97ba64 100644 --- a/tldr/npm-doctor +++ b/tldr/npm-doctor @@ -8,19 +8,19 @@ source: https://github.com/tldr-pages/tldr.git > Check the health of the npm environment. > More information: . -- Run all default health checks for npm: +- Run all default health checks for `npm`: `npm doctor` -- Check the connection to the npm registry: +- Check the connection to the `npm` registry: `npm doctor connection` -- Check the versions of Node.js and npm in use: +- Check the versions of Node.js and `npm` in use: `npm doctor versions` -- Check for permissions issues with npm directories and cache: +- Check for permissions issues with `npm` directories and cache: `npm doctor permissions` diff --git a/tldr/npm-home b/tldr/npm-home index bf177fea..e8f9a3a0 100644 --- a/tldr/npm-home +++ b/tldr/npm-home @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Open the npm page, Yarn page, or GitHub repository of a package in the web browser. > More information: . -- Open the npm page of a specific package in the web browser: +- Open the `npm` page of a specific package in the web browser: `npm-home {{package}}` diff --git a/tldr/npm-name b/tldr/npm-name index 56a84ebd..a2134a38 100644 --- a/tldr/npm-name +++ b/tldr/npm-name @@ -8,10 +8,10 @@ source: https://github.com/tldr-pages/tldr.git > Check whether a package or organization name is available on npm. > More information: . -- Check if a specific package name is available in the npm registry: +- Check if a specific package name is available in the `npm` registry: `npm-name {{package}}` -- Find similar package names in the npm registry: +- Find similar package names in the `npm` registry: `npm-name --similar {{package}}` diff --git a/tldr/npm-team b/tldr/npm-team new file mode 100644 index 00000000..0a24789b --- /dev/null +++ b/tldr/npm-team @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# npm team + +> Manage teams in an organization on the `npm` registry. +> More information: . + +- Add a user to a team in an organization: + +`npm team add {{organization:team}} {{username}}` + +- Remove a user from a team: + +`npm team rm {{organization:team}} {{username}}` + +- Create a new team in an organization: + +`npm team create {{organization:team}}` + +- Delete a team from an organization: + +`npm team destroy {{organization:team}}` + +- List all teams in an organization: + +`npm team ls {{organization}}` + +- List all users in a specific team: + +`npm team ls {{organization:team}}` diff --git a/tldr/npm-why b/tldr/npm-why index 60c6ac50..73374363 100644 --- a/tldr/npm-why +++ b/tldr/npm-why @@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git > Identifies why an npm package is installed. > More information: . -- Show why an npm package is installed: +- Show why an `npm` package is installed: `npm-why {{package}}` diff --git a/tldr/pnpx b/tldr/pnpx index 599271f5..dc9e4678 100644 --- a/tldr/pnpx +++ b/tldr/pnpx @@ -9,11 +9,11 @@ source: https://github.com/tldr-pages/tldr.git > Note: This command is deprecated! Use `pnpm exec` and `pnpm dlx` instead. > More information: . -- Execute the binary from a given npm module: +- Execute the binary from a given `npm` module: `pnpx {{module_name}}` -- Execute a specific binary from a given npm module, in case the module has multiple binaries: +- Execute a specific binary from a given `npm` module, in case the module has multiple binaries: `pnpx --package {{package_name}} {{module_name}}` diff --git a/tldr/tsc b/tldr/tsc index c591c08b..6f7a5ee7 100644 --- a/tldr/tsc +++ b/tldr/tsc @@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Type-check multiple JavaScript files, and output only the errors: `tsc --allowJs --checkJs --noEmit {{src/**/*.js}}` + +- Run the compiler in watch mode, which automatically recompiles code when it changes: + +`tsc --watch`