01 RCLI
作者:独钓寒江
- 2024-04-27 广东
本文字数:3371 字
阅读完需:约 11 分钟
pre-commit install
git commit -a
cargo build
ls -l target/
cat ~/.cargo/config
target-dir
ls -l ~/.target/debug/template
cargo build --release
ls -l ~/.target/release/template
复制代码
cliff.toml
postprocessors
cd E:\Workspaces\Rust\bootcamp
ls
cargo generate tyr-rust-bootcamp/template
cd rcli
code .
Administrator in rcli on main is 📦 v0.1.0 via 🦀 v1.77.2
❯ pre-commit install
pre-commit installed at .git\hooks\pre-commit
复制代码
git status
git commit -a
git add .
git commit -a
去 GitHub 新建项目
git remote add origin git@github.com:KintalLam/01-rcli.git
git branch -M main
git push -u origin main
\rcli\deny.toml
bash --> cmd
\rcli.github\workflows\build.yml
master --> main
Administrator in rcli on main [!] is 📦 v0.1.0 via 🦀 v1.77.2
❯ git commit -a
check BOM - deprecated: use fix-byte-order-marker........................Passed
check for case conflicts.................................................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check yaml...............................................................Passed
mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
black................................................(no files to check)Skipped
cargo fmt............................................(no files to check)Skipped
cargo deny check.....................................(no files to check)Skipped
typos....................................................................Passed
cargo check..........................................(no files to check)Skipped
cargo clippy.........................................(no files to check)Skipped
cargo test...........................................(no files to check)Skipped
[main 75f8eee] Updated rcli\.github\workflows\build.yml
1 file changed, 3 insertions(+), 3 deletions(-)
复制代码
Administrator in rcli on main [⇡] is 📦 v0.1.0 via 🦀 v1.77.2 took 1m3s
❯ git push
Enumerating objects: 9, done.
Delta compression using up to 16 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 435 bytes | 435.00 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:KintalLam/01-rcli.git
6df9530..75f8eee main -> main
复制代码
Administrator in rcli on main is 📦 v0.1.0 via 🦀 v1.77.2 took 3s
❯ git diff
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ae82ef9..cb95232 100644
+++ b/.github/workflows/build.yml
@@ -17,7 +17,7 @@ jobs:
build-rust:
strategy:
matrix:
- platform: [ubuntu-latest, windows]
+ platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
diff --git a/cliff.toml b/cliff.toml
index abaa3ed..b65068c 100644
--- a/cliff.toml
+++ b/cliff.toml
@@ -46,7 +46,7 @@ footer = """
trim = true
# postprocessors
postprocessors = [
- { pattern = '\$REPO', replace = "https://github.com/tyrchen/geektime-rust-live-coding" }, # replace repository URL
+ { pattern = '\$REPO', replace = "https://github.com/KintalLam/01-rcli" }, # replace repository URL
]
[git]
复制代码
Administrator in rcli on main [!] is 📦 v0.1.0 via 🦀 v1.77.2 took 7s
❯ git checkout -b chore/fix-cliff-config
Switched to a new branch 'chore/fix-cliff-config'
复制代码
Administrator in rcli on chore/fix-cliff-config [!] is 📦 v0.1.0 via 🦀 v1.77.2
❯ git status
On branch chore/fix-cliff-config
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .github/workflows/build.yml
modified: cliff.toml
no changes added to commit (use "git add" and/or "git commit -a")
复制代码
Administrator in rcli on chore/fix-cliff-config [+] is 📦 v0.1.0 via 🦀 v1.77.2
❯ git commit -a
check BOM - deprecated: use fix-byte-order-marker........................Passed
check for case conflicts.................................................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
check yaml...............................................................Passed
fix end of files.........................................................Passed
mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
black................................................(no files to check)Skipped
cargo fmt............................................(no files to check)Skipped
cargo deny check.....................................(no files to check)Skipped
typos....................................................................Passed
cargo check..........................................(no files to check)Skipped
cargo clippy.........................................(no files to check)Skipped
[chore/fix-cliff-config 13c02fd] chore: corrected the project url in cliff and removed windows from build.yml
2 files changed, 2 insertions(+), 2 deletions(-)
ok 1m44s
复制代码
❯ git push origin chore/fix-cliff-config
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 16 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 521 bytes | 521.00 KiB/s, done.
Total 6 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
remote:
remote: Create a pull request for 'chore/fix-cliff-config' on GitHub by visiting:
remote: https://github.com/KintalLam/01-rcli/pull/new/chore/fix-cliff-config
remote:
To github.com:KintalLam/01-rcli.git
* [new branch] chore/fix-cliff-config -> chore/fix-cliff-config
复制代码
去 Github 处理 pull request
Administrator in rcli on chore/fix-cliff-config is 📦 v0.1.0 via 🦀 v1.77.2 took 3s
❯ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
复制代码
Administrator in rcli on main is 📦 v0.1.0 via 🦀 v1.77.2
❯ git pull
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 6 (delta 3), reused 5 (delta 3), pack-reused 0
Unpacking objects: 100% (6/6), 1.15 KiB | 117.00 KiB/s, done.
From github.com:KintalLam/01-rcli
75f8eee..6bbf448 main -> origin/main
Updating 75f8eee..6bbf448
Fast-forward
.github/workflows/build.yml | 2 +-
cliff.toml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
复制代码
划线
评论
复制
发布于: 刚刚阅读数: 4
独钓寒江
关注
还未添加个人签名 2018-08-08 加入
还未添加个人简介
评论