stripeek

(★ 15)

Terminal tool for real-time Stripe API debugging, built for navigating complex payloads fast. Also handles webhook events.

파일 탐색기

  • .gitignore
  • .goreleaser.yaml
  • go.mod
  • go.sum
  • LICENSE
  • Makefile
  • README.md

# CDN으로 사용하기

jsDelivr

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

명령어 용어집

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

🔍

git checkout

설명 보기 ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git pull

설명 보기 ▼

Fetch branch from a remote repository and merge it to local repository.

git pull

Download changes from default remote repository and merge it:

git pull {{[-r|--rebase]}}

Download changes from default remote repository and use fast-forward:

git pull {{remote_name}}

Download changes from a specific remote repository:

🔍

git push

설명 보기 ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

git tag

설명 보기 ▼

Create, list, delete, or verify tags.
A tag is a static reference to a commit.

git tag

List all tags:

git tag {{tag_name}}

Create a tag with the given name pointing to the current commit:

git tag {{tag_name}} {{commit}}

Create a tag with the given name pointing to a given commit:

🔍

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 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:

🔍

stripe

설명 보기 ▼

Stripe 계정과 상호 작용.
더 많은 정보: <https://docs.stripe.com/stripe-cli>.

stripe logs tail

계정 활동 로그 팔로우:

stripe listen --events="{{charge.succeeded}}" --forward-to="{{localhost:3000/events}}"

`charge.succeeded` 이름의 이벤트를 필터링하여 이벤트 수신 대기하고 이를 localhost:3000/events로 전달:

stripe trigger {{charge.succeeded}}

테스트 웹훅 이벤트 전송:

// repository documentation