🧊Rimuru 是一个将文本转换为不同命名约定的工具
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
将以下代码放入 Package.swift
中。
dependencies: [
.package(url: "https://github.com/funzin/Rirumu.git", from: "1.0.0"),
]
将以下代码放入 Mintfile
中。
funzin/Rimuru@1.0.0
git clone https://github.com/funzin/Rimuru
make setup
open Rimuru.xcodeproj
如果您发现问题或有任何意见,请通过 Github issues 告诉我 💁♂️
funzin
Rimuru 使用 MIT 许可证。 详情请查看 LICENSE 文件。