9
V2EX  ›  问与答

有没有可用的 shell 框架?

  •  
  •   9 · Oct 20, 2016 · 3934 views
    This topic created in 3516 days ago, the information mentioned may be changed or developed.

    总觉得现在写 shell 就好像写原生的 js, php 那样,代码拉面似的,很多重复的代码,读起来也费劲。 想找一个 shell 的框架来提高脚本的可读性和维护性,并且减少重复的代码,各位有推荐吗?

    github 上找了个 https://github.com/niieani/bash-oo-framework 没还细看

    6 replies    2016-10-21 10:31:01 +08:00
    explon
        1
    explon  
       Oct 20, 2016
    sinxccc
        3
    sinxccc  
       Oct 20, 2016
    Perl
    lhbc
        4
    lhbc  
       Oct 20, 2016   ❤️ 1
    复杂点的东西还是 Python 解决吧
    现在所有 x86 发行版应该都内置了 Python
    shell 处理复杂逻辑和数据还是太麻烦
    9
        5
    9  
    OP
       Oct 21, 2016
    @sinxccc 额,用 perl 的话可能还不如直接用 python ,团队里也没人用这个。。
    9
        6
    9  
    OP
       Oct 21, 2016
    @explon 恩,用 lavavel 的 console 试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   909 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 19:50 · PVG 03:50 · LAX 12:50 · JFK 15:50
    ♥ Do have faith in what you're doing.