Giter Site home page Giter Site logo

switchenv's Introduction

switch ENV

开发过程中,可能需要电脑共存n个版本的软件 如php,composer,node,java

使用本软件,可以灵活切换当前环境的软件变量(无需重启cmd)

zFtPyD.md.png zFYAP0.png zFY0II.md.png

使用教程

  1. 你需要灵活切换版本的软件不要加入环境变量,纯用本软件管理(使用本软件前先删掉)
  2. 本软件安装目录需要添加俩个环境变量,假设本软件安装在D:\switchENV\,则需要添加以下环境变量
  • D:\switchENV\
  • D:\switchENV\bat
  1. 启动本软件: cmd 输入./switchENV.exe 或者运行 swtichENV.bat
  2. 页面可视化配置和切换

配置

默认不需要什么配置,直接cmd运行软件即可,但是如果你需要自定义端口和目录等场景,可以按以下步骤新建配置文件

  • 在软件目录同级新建set.ini
  • 放置以下文件内容
app_mode = dev

db_path = D:\CodeSoft\switchEnv
db_name = switch.db

bat_path = D:\CodeSoft\switchEnv
bat_identify = bat

[gin]
address = 127.0.0.1
port = 8899

开发

  • 下载代码
  • go run main.go
  • 前端代码说明看kernel/public/README.md
  • 打包命令go build -o switchENV.exe

规划

  • github CICD 自动打包exe
  • [] github CI中 添加set.ini的初始化到压缩包
  • [√] 前端 - 添加重名重复版本 API有做拦截 前端没做显示
  • [√] 前端 - 添加软件成功后 需要马上调用API刷新列表
  • [√] 前端 - 所在路径必须/结尾 做提示和检测
  • [√] 前端 - 新增弹框的时候,取消点击外面阴影关闭弹窗
  • [√] 前端 - 软件列表 路径布局优化
  • 前端 - 终止程序对接

switchenv's People

Contributors

daixs020 avatar tioncico avatar xuanyanwow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

daixs020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.