This tool can extract texts from swift code, xib and storyboard.
Let's run textoru {path of file or directory}
!
{filename} {line}:{column} {text}
textoruTests.swift 31:15 prefix_____\(pipe)_____suffix
textoruTests.swift 37:75 .xctest
textoruTests.swift 40:20 couldn't find the products directory
textoruTests.swift 47:10 testExample
textoruTests.xib 18:360 Label のテキスト
textoruTests.xib 32:61 Button のテキスト
textoruTests.storyboard 20:372 Label のテキスト
textoruTests.storyboard 34:73 Button のテキスト
Show warning highlight on Xcode when run this command with -h=true
at run script.
Let's run textoru -h=true {path of file or directory}
at run script!
$ git clone git@github.com:ezura/textoru.git
$ cd textoru
$ make
$ mint install ezura/textoru
USAGE: textoru [option] path
OPTIONS:
--highlight, -h show warning highlight on Xcode when run this command at run script.
--help Display available options
POSITIONAL ARGUMENTS:
path input file/directory path
I want to distinguish the output of Raw strings(#"{ text }"#
) and normal string clearly.
So the output of Raw strings is not trimmed with "#".