Code Monkey home page Code Monkey logo

christmas's Introduction

Christmas是一个通用代码生成器,如果代码不能只写一次,那就生成它。

最新稳定版本: v2.1 使用文档详见官网,点击跳转使用手册

Christmas is a generic code generator that generates code if it can't be written just once.

Latest stable version: v2.1 For detailed documentation, please refer to the official website, click to jump to the manual.


概述 Overview

Christmas是python3编写的开源代码生成器。

设计之初是为了用更简明的方式表达代码,希望枯燥重复的代码只写一次,开发者只需要关注最核心的逻辑问题,以降低调试、沟通成本,以及提高开发效率。

另外,Christmas也帮助代码工程拥有更加自由的代码结构,满足诸如模块代码完全独立、调试代码与生产代码分离等场景。

Christmas虽然是为代码服务的,但是实际上,它能处理所有的文件文本信息。

代码生成不仅能提高生产效率,防止一些无聊的代码错误而浪费的调试成本,而且能大幅简化代码,规整化工程,降低维护时重新理解代码的时间。

Christmas is an open source code generator written in python3.

It was designed to express code in a more concise way, hoping that boring and repetitive code is only written once and developers only need to focus on the most core logic issues to reduce debugging and communication costs, as well as improve development efficiency.

In addition, Christmas also helps code engineering to have a more free code structure to meet such scenarios as module code is completely independent and debugging code is separated from production code.

Although Christmas is for the code , but in fact , it can handle all the file text information .

Code generation not only improves productivity and prevents wasted debugging costs from some boring code errors, but also drastically simplifies the code, regularizes the project, and reduces the time spent on re-understanding the code during maintenance.


功能概要 Functional Summary

Christmas含有五大功能:

  • GenCode:通过代码模板生成代码
  • MergeCode:从现有代码剪切合并代码,改变代码结构;
  • CleanCode:清理文件、目录;
  • DownloadCode:下载代码;
  • ShellExcute:shell命令行编排;

Christmas contains five major functions

  • GenCode: Generate code from code templates
  • MergeCode: Cut and merge code from existing code , for change the code structure
  • CleanCode: Clean up/Back up files or directories
  • DownloadCode: download code
  • ShellExcute: shell command line programming

历史版本 Revision History

2.1

  • [update]去除version.txt文件,改用Load.json文件,方便软件升级
  • [update]GenCode增加isFillLack配置,用于设置在缺少参数时,是否填充为空字符串
  • [update]DownloadCode 增加版本切换,增加License传参
  • [bug]在非Christmas目录下运行,获取不了target.json
  • [bug]MergeCode的Xms_path中的变量,如果变量后不加上其他字符,会匹配到空字符串
  • [bug]GenCode中直接输出json数据,若json数据为多级嵌套,会输出文本不正确
  • [update]Remove the version.txt file and use the Load.json file instead, which is convenient for software upgrade
  • [update]GenCode adds the isFillLack configuration to set whether to fill an empty string when parameters are missing
  • [update]DownloadCode adds version query switching, add License transmission parameters
  • [bug]Running in a non-Christmas directory, you can't get target.json
  • [bug]The variable in the Xms_path of MergeCode will match the empty string if no other characters are added after the variable
  • [bug]Directly output json data in GenCode. If the json data is multi-level nested, the output text will be incorrect

2.0

  • python3重新编写
  • 追加下载代码DownloadCode、命令行编排ShellExcute功能
  • 模板代码生成MakeCodeNormal调整至GenCode
  • 模板代码生成MakeEngineeringNormal调整至MergeCode,设置简化
  • 去除菜单生成MakeMenu功能
  • 新增配套VScode插件
  • 简化目录结构、配置规则
  • python3 rewrite
  • Add DownloadCode and ShellExcute function for command line programming.
  • Adjust template code generation MakeCodeNormal to GenCode.
  • Template code generation MakeEngineeringNormal adjusted to MergeCode, settings simplified.
  • Remove MakeMenu function.
  • Add VScode plugin.
  • Simplify directory structure and configuration rules

1.0 (停止维护 Stop Maintenance)

  • ruby编写
  • 包含模板代码生成MakeCodeNormal、现有代码合并MakeEngineeringNormal、清理代码CleanFile、菜单生成MakeMenu功能
  • ruby writing
  • Include template code generation MakeCodeNormal, existing code merge MakeEngineeringNormal, clean code CleanFile, menu generation MakeMenu function

christmas's People

Contributors

yiigaa avatar

Stargazers

g770728y avatar 玄兴梦影 avatar  avatar 冰晓焰 avatar  avatar Vinci avatar  avatar Matin avatar  avatar lin avatar Mihajlovic avatar Mona avatar  avatar woods avatar lulu1314 avatar tangtang avatar LRoInT avatar 率责平 avatar  avatar boring life avatar  avatar  avatar  avatar  avatar  avatar lxiol avatar  avatar  avatar  avatar  avatar Acbox Liu avatar lisy avatar  avatar

Watchers

 avatar

Forkers

lxiol-star

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.