Skip to content

asyanix/FontCasesCommandLineTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FontCasesCommandLineTool

Command-line инструмент, который распознает тип кейса (из списка ниже) строки. Типы кейсов, которые можно обработать: camelCase, snake_case, kebab-case, PascalCase, Train-Case, SCREAMING_SNAKE_CASE, dot.case, path/case. Также можно указать желаемый тип кейса и программа вернет строку, сконвертированную в переданный кейс. Например, на вход поступило "fun/string/example" и "Train-Case", получаем "Fun-String-Example".

Для работы с данным инструментом используйте следующие команды:

swift run FontCasesTool fun_string_example

Вывод будет: The string that you want to process: fun_string_example

The result: snakeCase

swift run FontCasesTool fun_string_example --font-case PascalCase

Вывод будет: The string that you want to process: fun_string_example

The result: FunStringExample

About

Command line tool that converts between different case in Swift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages