Giter Site home page Giter Site logo

rocketmq_completion's Introduction

rocketmq_completion

介绍

rocketmq_completion是为rocketmq开发的命令行补全工具,主要方便用户使用rocketmq时,减少命令行交互的成本及出错的概率!

用法

rocketmq_completion只有一个脚本,借助Linux中complete及compgen技术实现

  • 从github上download到本地或服务器任何目录下,例如:/your_path/rocketmq_completion/rocketmq_completion

  • 在本机bash_completion.d目录下,建立对应软连接(需要root权限),注:不同Linux发行版目录地址不同,用户可根据自己系统版本 google

      cd /etc/bash_completion.d/
      ln -s /your_path/rocketmq_completion/rocketmq_completion
    
  • 在bash_profile下填加一行

      source /your_path/rocketmq_completion/rocketmq_completion
    
  • 重新打开一个新窗口,检查completion是否起作用

      complete -p
    
  • 输出中出现以下内容表示成功

      complete -F _mqadmin mqadmin
    

其它

  • 目前版本只实现了mqadmin脚本的自动补全
  • 未来对其它脚本的补全会持续更新,实现方式是在rocketmq_completion脚本下添加_command方法并complete -F _command command方式来实现,以上用法中的步骤用户无需重复操作,即可实现对新增命令的自动补全

关于作者

坚持走技术路线的码农一枚

rocketmq_completion's People

Watchers

James Cloos avatar  avatar

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.