🧊Rimuru

🧊Rimuru 是一个将文本转换为不同命名约定的工具

GitHub Action Platform Language License License

环境

GIF

demo

使用方法

OVERVIEW: A tool for converting the input text to different naming convention

e.g Rimuru --from lower --to upper exampleTestCase

USAGE: rimuru --from <from> --to <to> <text>

ARGUMENTS:
  <text>                  The text to be converted

OPTIONS:
  -f, --from <from>       Input text naming convention
                          Select the following naming convention
                          (upper|lower|screamingSnake|snake|kebab|train)


  -t, --to <to>           Output text naming convention
                          Select the following naming convention
                          (upper|lower|screamingSnake|snake|kebab|train)


  --version               Show the version.
  -h, --help              Show help information.

支持的命名约定

命名约定
UpperCamelCase (大驼峰命名法)
LowerCamelCase (小驼峰命名法)
ScreamingSnakeCase (尖叫蛇形命名法/全大写蛇形命名法)
SnakeCase (蛇形命名法)
KebabCase (短横线命名法/烤串命名法)
TrainCase (火车命名法)

示例

$ rimuru --from upper --to snake ExampleTestCase
example_test_case

安装

Swift Package Manager (Swift 包管理器)

将以下代码放入 Package.swift 中。

dependencies: [
    .package(url: "https://github.com/funzin/Rirumu.git", from: "1.0.0"),
]

Mint

将以下代码放入 Mintfile 中。

funzin/Rimuru@1.0.0

开发

  1. git clone https://github.com/funzin/Rimuru
  2. make setup
  3. open Rimuru.xcodeproj

联系

如果您发现问题或有任何意见,请通过 Github issues 告诉我 💁‍♂️

作者

funzin

许可证

Rimuru 使用 MIT 许可证。 详情请查看 LICENSE 文件。