slophammer

(★ 20)

(Work in progress) Boilerplate reference implementations and tooling for coding projects, across different languages

파일 탐색기

  • .gitignore
  • .pre-commit-hooks.yaml
  • action.yml
  • AGENTS.md
  • LICENSE
  • Makefile
  • README.md
  • slophammer.yml

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

cargo check

설명 보기 ▼

Check a local package and all of its dependencies for errors.

cargo {{[c|check]}}

Check the current package:

cargo {{[c|check]}} --tests

Check all tests:

cargo {{[c|check]}} --test {{integration_test1}}

Check the integration tests in `tests/integration_test1.rs`:

🔍

cargo clippy

설명 보기 ▼

A collection of lints to catch common mistakes and improve your Rust code.

cargo clippy

Run checks over the code in the current directory:

cargo clippy --locked

Require that `Cargo.lock` is up to date:

cargo clippy --workspace

Run checks on all packages in the workspace:

🔍

cargo fmt

설명 보기 ▼

Run `rustfmt` on all source files in a Rust project.
See also: `rustfmt`.

cargo fmt

Format all source files:

cargo fmt --check

Check for formatting errors without writing to the files:

cargo fmt -- {{rustfmt_args}}

Pass arguments to each `rustfmt` call:

🔍

cargo install

설명 보기 ▼

Build and install a Rust binary.

cargo install {{package}}@{{version}}

Install a package from <https://crates.io> (the version is optional - latest by default):

cargo install --git {{repo_url}}

Install a package from the specified Git repository:

cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}

Build from the specified branch/tag/commit when installing from a Git repository:

🔍

cargo test

설명 보기 ▼

Execute the unit and integration tests of a Rust package.

cargo {{[t|test]}} {{test_name}}

Only run tests containing a specific string in their names:

cargo {{[t|test]}} -- --test-threads {{count}}

Set the number of simultaneous running test cases:

cargo {{[t|test]}} {{[-r|--release]}}

Test artifacts in release mode, with optimizations:

🔍

go install

설명 보기 ▼

Compile and install packages named by the import paths.

go install

Compile and install the current package:

go install {{path/to/package}}

Compile and install a specific local package:

go install {{golang.org/x/tools/gopls}}@{{latest}}

Install the latest version of a program, ignoring `go.mod` in the current directory:

🔍

go run

설명 보기 ▼

Compile and run Go code without saving a binary.

go run {{path/to/file.go}}

Run a Go file:

go run {{path/to/package}}

Run a main Go package:

🔍

go test

설명 보기 ▼

Test Go packages (files have to end with `_test.go`).
Note: `./...` is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.

go test

Test the package found in the current directory:

go test -v

[v]erbosely test the package in the current directory:

go test -v ./...

Test the packages in the current directory and all subdirectories:

🔍

go vet

설명 보기 ▼

Check Go source code and report suspicious constructs (e.g. lint your Go source files).
Go vet returns a non-zero exit code if problems are found; returns a zero exit code if no problems are found.

go vet

Check the Go package in the current directory:

go vet {{path/to/file_or_directory}}

Check the Go package in the specified path:

go tool vet help

List available checks that can be run with go vet:

🔍

golangci-lint

설명 보기 ▼

병렬 처리, 스마트하고 빠른 Go 린터 실행 도구로 주요 IDE와 통합되며 YAML 구성을 지원합니다.
더 많은 정보: <https://golangci-lint.run/welcome/quick-start/>.

golangci-lint run

현재 폴더에서 린터 실행:

golangci-lint linters

활성화 및 비활성화된 린터 목록 표시 (참고: 비활성화된 린터는 마지막에 표시되며, 활성화된 린터로 착각하지 마세요):

golangci-lint run {{[-E|--enable]}} {{linter}}

특정 린터를 이 실행에서 [E]nable:

🔍

npm install

설명 보기 ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

npx

설명 보기 ▼

이 명령은 `npm exec`의 별칭입니다.

tldr npm exec

자세한 내용은 원본 명령을 참고하세요:

🔍

tsc

설명 보기 ▼

TypeScript 컴파일러.
더 많은 정보: <https://www.typescriptlang.org/docs/handbook/compiler-options.html>.

tsc --init

`foobar.ts` TypeScript 파일을 `foobar.js` JavaScript 파일로 컴파일:

tsc {{path/to/file.ts}}

특정 목표 구문을 사용하여 TypeScript 파일을 JavaScript로 컴파일 (기본값은 `ES3`):

tsc {{[-t|--target]}} {{ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT|...}} {{path/to/file.ts}}

사용자 정의 이름으로 TypeScript 파일을 JavaScript 파일로 컴파일:

🔍

uv tool

설명 보기 ▼

Install and run commands provided by Python packages.

uv tool run {{command}}

Run a command from a package, without installing it:

uv tool install {{package}}

Install a Python package system-wide:

uv tool upgrade {{package}}

Upgrade an installed Python package:

🔍

uvx

설명 보기 ▼

이 명령은 `uv tool run`의 별칭입니다.

tldr uv tool

자세한 내용은 원본 명령을 참고하세요:

// repository documentation