9
V2EX  ›  问与答

有没有可用的 shell 框架?

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