소스 검색

feat(sh_config): 添加创建 requirements.txt 文件的函数

- 新增 python_new_requirements 函数,用于在项目根目录下创建一个空的 requirements.txt 文件
- 这个函数可以方便开发者快速开始记录项目依赖
tianyun 3 달 전
부모
커밋
e7bd0d18a8
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      sh_config.sh

+ 3 - 0
sh_config.sh

@@ -716,4 +716,7 @@ python_new_venv() {
 }
 python_in_venv(){
   . venv/bin/activate
+}
+python_new_requirements(){
+   touch requirements.txt
 }