CLI 程序转 HTTP 服务 cmd2http

码农软件 · 软件分类 · 其他开发相关 · 2019-10-22 17:42:02

软件介绍

cmd2http 是将cli程序(系统命令、脚本等)转换为http服务的工具

cmd2http 是使用golang编写,跨平台 。

已经编译好的linux和windows包 :http://pan.baidu.com/s/1bnkyWLD#path=%252Fcmd2http

执行:

./cmd2http -conf=../example/cmd2http.json -port=8080

主页面: http://localhost:8080/  

hello world demo:  

          url : http://localhost:8080/echo?wd=hello&a=world
command exec : echo -n hello world defaultValue  
       config : echo -n $wd $a $b|defaultValue

配置示例:

{
   port:8310,
   title:"default title"
   intro:"intro info"
   timeout:30
   cache_dir:"./cache_data/"
   cmds:{
      pwd:{
          cmd:"pwd",
          intro:"cmd intor",
          timeout:10
       },
      echo:{
         cmd:"echo -n $wd|你好 $a $b"
         cache:120
        }
   }
}


本文地址:https://codercto.com/soft/d/17331.html

移动Web前端高效开发实战

移动Web前端高效开发实战

iKcamp / 电子工业出版社 / 2017-9 / 89.00

移动互联网的兴起和快速普及,给前端开发人员带来了前所未有的新机遇。移动Web前端技术作为整个技术链条中重要的一环,却乱象丛生。《移动Web前端高效开发实战:HTML 5 + CSS 3 + JavaScript + Webpack + React Native + Vue.js + Node.js》是一本梳理移动前端和Native客户端技术体系的入门实战书。 《移动Web前端高效开发实战:HTML......一起来看看 《移动Web前端高效开发实战》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具