Skip to content

geekeryy/ak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


       __________/\\\\\\\\\_______________________/\\\________/\\\______        
        ________/\\\\\\\\\\\\\____________________\/\\\_____/\\\//_______       
         _______/\\\/////////\\\___________________\/\\\__/\\\//__________      
          ______\/\\\_______\/\\\___________________\/\\\\\\//\\\__________     
           ______\/\\\\\\\\\\\\\\\___________________\/\\\//_\//\\\_________    
            ______\/\\\/////////\\\___________________\/\\\____\//\\\________   
             ______\/\\\_______\/\\\___________________\/\\\_____\//\\\_______  
              ______\/\\\_______\/\\\___________________\/\\\______\//\\\______ 
               ______\///________\///____________________\///________\///_______
                                                      

Linux下脚本管理工具

Website GitHub code size in bytes GitHub GitHub issues GitHub tag (latest by date) GitHub pull requests GitHub commit activity GitHub last commit GitHub repo size GitHub language count Lines of code GitHub commit activity GitHub contributors Sourcegraph for Repo Reference Count GitHub top language

安装使用

手动安装

curl -o ak-main.tar.gz https://codeload.github.com/comeonjy/ak/tar.gz/refs/heads/main
tar -xvf ak-main.tar.gz -C /usr/local/
cp /usr/local/ak-main/ak /usr/bin/
export AK_ROOT=/usr/local/ak-main
source ak update main

Debug

export AK_ROOT=$(PWD)
export PATH=$PATH:$AK_ROOT

Example

# 查看当前版本
[root@localhost ~]# ak version

# 更新到最新版本
[root@localhost ~]# source ak update main

# 进入指定容器
[root@localhost ~]# source ak docker goto <container_name>

代码规范

  • 函数名用蛇形,文件名用中横线,隐藏函数命名用下划线开头
  • Commit提交
Commit 描述
🐛 修复BUG
📝 添加或更新文档
引入新功能
🧪 测试
  • 目录结构
.
├── CHANGELOG.md
├── LICENSE
├── README.md
├── VERSION
├── ak
├── ak.help
├── base # 脚本目录
└── lib  # 工具库

TODO

  • 支持安装指定版本ak
  • 支持卸载ak
  • 支持一键安装
  • 支持选项参数
  • 兼容各操作系统发行版
  • 解决脚本内不能修改父shell环境变量问题
  • 解决插件安装问题

About

Linux下脚本管理工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages