写点什么

01 RCLI

作者:独钓寒江
  • 2024-04-27
    广东
  • 本文字数:3371 字

    阅读完需:约 11 分钟

pre-commit install
git commit -a
cargo build
ls -l target/
cat ~/.cargo/configtarget-dir
ls -l ~/.target/debug/template
cargo build --releasels -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 installpre-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 -acheck BOM - deprecated: use fix-byte-order-marker........................Passedcheck for case conflicts.................................................Passedcheck for merge conflicts................................................Passedcheck for broken symlinks............................(no files to check)Skippedcheck yaml...............................................................Passedmixed line ending........................................................Passedtrim trailing whitespace.................................................Passedblack................................................(no files to check)Skippedcargo fmt............................................(no files to check)Skippedcargo deny check.....................................(no files to check)Skippedtypos....................................................................Passedcargo check..........................................(no files to check)Skippedcargo clippy.........................................(no files to check)Skippedcargo 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 pushEnumerating objects: 9, done.Delta compression using up to 16 threadsCompressing 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 diffdiff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 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@v4diff --git a/cliff.toml b/cliff.tomlindex 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-configSwitched 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 statusOn branch chore/fix-cliff-configChanges 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 -acheck 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-configEnumerating objects: 11, done.Counting objects: 100% (11/11), done.Delta compression using up to 16 threadsCompressing 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-configremote: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 mainSwitched 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 pullremote: 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 0Unpacking objects: 100% (6/6), 1.15 KiB | 117.00 KiB/s, done.From github.com:KintalLam/01-rcli   75f8eee..6bbf448  main       -> origin/mainUpdating 75f8eee..6bbf448Fast-forward .github/workflows/build.yml | 2 +- cliff.toml                  | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
复制代码


用户头像

独钓寒江

关注

还未添加个人签名 2018-08-08 加入

还未添加个人简介

评论

发布
暂无评论
01 RCLI_​Rust_独钓寒江_InfoQ写作社区