-
Notifications
You must be signed in to change notification settings - Fork 0
CLI options #1
Comments
I love Babel api with 'in', 'out' params and with 'preset' feature Cheers, |
@iamstarkov I can add them, in addition to |
btw can we just use Babel as framework now when it is general build tool? Cheers, |
What do you mean when you say "use Babel as framework"?
|
I've used the |
@iamstarkov Is it really useful for us? Are you suggest to make |
@shuvalov-anton okay, I'll remove |
I mean Babel is general build system from now on, so maybe we can use Babel Cheers, |
I don't think that's a good idea. For example, typography-ellipses will break spread operator. Or are you talking about presets for text files. |
I didn't intend to use it for js projects but if it's possible to use Babel Cheers, |
@iamstarkov I still don't understand what you want. Can you explain with example? |
yep, but only tomorrow Cheers, |
I got. But IMHO babel things isn't very useful for small CLI project. I want to take a look on it, but I guess it's about the other. |
I'll also take a look tomorrow and hope It will work out Cheers, |
i take a look at babel plugins examples and it seems like the only purpose is javascript files |
so yeah babel is not for us |
but I definitely like its API with I think we can learn from them |
is it possible to make it without coma? like this:
|
About
So, if we use About About |
It can be cofused with arguments. For example:
Above, But, we can use it, like this:
|
it's just a wish Cheers, |
It's confusing. -1
+1 |
okay ⚡️ Cheers,
|
What are you thinking about
or
P.S: If there isn't second argument, then result will be witten into stdout. |
I would love explicit output param with default stdout |
i prefer |
okay, I'm gonna implement |
btw, thank you for taking initiative over cli 👏 |
I've finished first implementation with tests. Take a look here: https://github.com/denysdovhan/textr-cli/tree/dev
Also, we've forgot about |
btw, @shuvalov-anton locale was bothering me and i think it shouldnt be 'en' by default and if not defined then textr plugins should not do anything impicitly. what do you think? |
@iamstarkov that's bcoz i'm gonna use textr, but I need cli. It's profitable to me, at first ;) |
I've finished |
Take a look #2. |
How about adding
|
LGTM :D |
But what's better loading textrrc, or give opportunity to chose any of json files? I think second case would be better. |
I think, good case is specify |
Yep, I've understood. It will be better. |
Discussion about base options
@iamstarkov and @shuvalov-anton, please leave your suggestions bellow. If you don't mind, let's move the discussion about CLI here.
Transformers [Done #2]
Few
-t
or--transforms
options:-t
or--transforms
as list of transformers:-t
or--transforms
throught equal sign:Input [Done #2]
Read from
stdin
:Read from file:
Output [Done #2]
Write into
stdout
:Write into file using
--out-file
or-o
flags:Locale [Done #2]
Set local using
-l
and--locale
:Watch [Done #3]
--watch
and-w
:Diff
Output diff instead of result:
Config
.textrrc
with config. This file should be connected automatically. But user should be able to redefine it with-c
option (should works like a.vimrc
, '.babelrc`, etc)..textrrc
example:Ref to A/textr#1
The text was updated successfully, but these errors were encountered: