boringhex.top博客

非典型程序员的小破站

Typer, build great CLIs. Easy to code. Based on Python type hints.

今天偶然看到GitHub上一个python开源项目——Typer,可以帮助简单快速地构建命令行应用。正如介绍所说,“users will love using and developers will love creating”。

The key features are:

  • Intuitive to write: Great editor support. Completion everywhere. Less time debugging. Designed to be easy to use and learn. Less time reading docs.

  • Easy to use: It’s easy to use for the final users. Automatic help, and automatic completion for all shells.

  • Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.

  • Start simple: The simplest example adds only 2 lines of code to your app: 1 import, 1 function call.

  • Grow large: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.

阅读全文 »

这篇文章之前发布在稀土掘金上,所以图片上有水印。

今天在win10上安装了Jenkins,作为团队CI/CD服务器,中间有些小坑,记录下过程。

环境

  1. Windows10 专业工作站版 19044.2006
  2. Jenkins 2.361.1

    注意:这个版本的Jenkins只能用Java11或17

  3. Java11 jdk-11.0.16.1
阅读全文 »

前两天写完一篇文章,但是还没有发布,因为一直在调试hexo和next-theme的配置。然后就发生了一件很悲催的事情,执行了git add .,正准备git commit时,发现有很多文件不想加到git仓库,也就是在工作区执行了add,但是还没有commit,此时脑袋一热,执行了git reset --hard HEAD,然后就悲剧了,工作区的修改全没了。

脑袋嗡的一下,敲完回车的那一刹那我就感觉哪里不对了,但为时已晚。

阅读全文 »

安装

Hexo的安装比较简单,其中不太友好的点就是nodejs的安装。这里强烈推荐Scoop

我是参照中文版官方文档进行安装,文中要求nodejs和git,git早早就安装了,安装nodejs时遇到一点小问题,就是nodejs版本太多、更新太快。

阅读全文 »

踟蹰了太长时间,差点就放弃,但是心中还是觉得技术人应该写点什么,留下点什么,所以终于还是入坑了。

从弃坑到入坑


第一次产生写博客的想法应该还是大学时,当时经常逛论坛,翻看技术博客,主要是老外的,当时真的是啥啥芯片都是老外的,资料也就基本英文。看人家写的博客就觉得这帮人怎么这么闲,每天干完工作,还有时间写博客、发文章,甚至拍视频,做技术分享交流,老外的文章质量真的很高,甚至比国内某些教材写的都好,所以萌生了自己也要写的想法,然后就开始找各种方案。

阅读全文 »
0%