Menno
67b1febc1d
fix comment
2021-10-17 14:32:26 +02:00
Menno
f80c486834
add alternative string values method
2021-10-17 14:31:43 +02:00
Kiril Vladimiroff
67e4e9619f
Add flag for generating gqlgen marshaling methods
2020-09-18 16:35:44 +03:00
Dan Markham
eb484e6440
case insensitive bug fix
2020-08-08 21:23:56 -07:00
xescugc
cb6196db58
stringer: Add logic to fail if transformer empties value
...
If the output of the transformer is '' means that something went wrong (if it had a value before) and so
it needs to fail to not conntinue with silence errors
2020-06-08 21:31:25 +02:00
Dan Markham
8d7221cc8a
enum value change detector
2020-02-23 22:47:17 -08:00
Dan Markham
9793e421ce
use constant names
2020-02-23 15:24:20 -08:00
Dan Markham
49fa643993
Allow multiple trim prefixes
...
based on changes from @sgtsquiggs
2020-02-23 13:24:02 -08:00
Dan Markham
2a31c850ad
Make PillString case insensitive
...
fixes #21
2019-05-04 15:33:34 -07:00
Dan Markham
ae561ba734
Adding in the Usage
2019-04-23 21:21:16 -07:00
Dan Markham
ccf4a55cf2
Line comment support #18
2019-04-23 15:13:34 -07:00
Miha Vrhovnik
ceea85e531
Create temporary file in same directory as the final fiel resides
...
If temp file is created on different parition, then move command will fail
2019-04-19 08:38:40 +02:00
Dan Markham
58249b251f
Only add the comment line when there is a comment
2019-04-04 18:48:04 -07:00
Dan Markham
107292ddbc
resolve some conflicts
2019-04-04 17:57:54 -07:00
Dan Markham
f8e96284fe
Merging in serjlee
2019-04-04 17:11:33 -07:00
Dan Markham
1c1330394d
fix merge conflicts
2019-04-04 16:33:59 -07:00
amanbolat
b0dd5b45a5
update to work with go modules
2019-04-04 15:57:51 -07:00
amanbolat
bbb4825a38
added usage
2019-04-04 15:57:38 -07:00
amanbolat
c7302601d6
remove importers
2019-04-04 15:57:37 -07:00
Luca Osti
188f5ebedc
Add title-lower transform
2019-03-22 11:37:02 +01:00
Luca Osti
5511caae23
Add prefix after transform
2019-03-22 11:36:16 +01:00
Luca Osti
ea11b04142
Add withprefix flag
2019-03-22 10:54:07 +01:00
Xopherus
6ec30747dc
Add whitespace-separated transformation
2019-02-12 12:35:47 -05:00
Gert-Jan Timmer
78452a952a
Add Transformers
...
- snake-upper
- kebab-upper
- lower (Lowercase)
- upper (Uppercase)
- title (TitleCase)
- first (Use first character of string)
- first-lower (same as first only lower case)
- first-upper (same as first only upper case)
2019-01-17 13:07:52 +01:00
David Terei
2615c451ce
Write to tempfile first then rename
2018-08-08 16:27:25 -07:00
David Terei
a4db2f8dd0
Support including chosen comments in generated code
2018-08-08 16:16:25 -07:00
David Terei
30e0eba7d0
Use enumer not stringer in usage output
2018-08-08 15:58:26 -07:00
Peter Boromissza
d45c729264
Use the standard generated file marker
...
This change is required for go lint compatibility.
See:
https://golang.org/s/generatedcode
https://github.com/golang/go/issues/13560#issuecomment-288457920
2018-06-10 16:30:56 +02:00
Alvaro Lopez Espinosa
865d4d5850
Updated docs
2018-03-09 18:05:29 +00:00
Alvaro Lopez Espinosa
a7e0f72c42
Add docs
2018-03-09 18:02:04 +00:00
Alvaro Lopez Espinosa
13c6b5bfe2
remove white line
2018-03-09 17:16:29 +00:00
Alvaro Lopez Espinosa
87dc173c7b
Fix some golint suggestions
2018-03-09 16:55:00 +00:00
Álvaro
1dea5e9823
Create "values" and "belongsToEnum" methods
2018-03-09 11:32:26 +00:00
Álvaro
81eff08fc7
Add a new "text" flag for TextMarshaler methods
2018-03-08 19:51:11 +00:00
Alvaro Lopez Espinosa
f3fec002f1
Change the name of the generated file
2018-02-06 12:17:13 +00:00
Steve Atkins
bd9938fa86
Remove autotrimprefix option; add basic tests for -trimprefix.
2018-02-05 16:48:43 -08:00
Steve Atkins
276f4081b1
Merge branch 'master' of git://github.com/alvaroloes/enumer
2018-02-05 15:45:41 -08:00
Álvaro López Espinosa
3ee8f07883
Merge pull request #25 from wlbr/master
...
Making the generated code golint "friendly".
2018-02-05 11:42:07 +00:00
Álvaro López Espinosa
7c891f48ad
Merge branch 'master' into master
2018-02-05 11:28:19 +00:00
Michael Wolber
5d97e5e788
Revert "Updated stringer.go to current version (2018/01)"
...
This reverts commit 95a15ae31e
.
2018-01-04 12:01:03 +01:00
Michael Wolber
95a15ae31e
Updated stringer.go to current version (2018/01)
2018-01-04 11:38:06 +01:00
Michael Wolber
aa50e29ee8
Added comment to generated ...String function. Removed usage of _ in identifiers.
2018-01-03 15:35:09 +01:00
Carl Sverre
e5b99fedb3
Maintain go 1.8 compat
2017-11-28 15:42:24 -08:00
Carl Sverre
7f992c627d
import from source
2017-11-28 15:31:38 -08:00
Pascal S. de Kloe
f1508650a2
Replace naming convention library. Eliminates transformer code.
2017-08-06 00:58:54 +02:00
Steve Atkins
51d23ad531
add -trimprefix and -autotrimprefix
2017-04-10 11:37:23 -07:00
achernov
432dffaa95
Add enum value string representation transformation feature
2017-02-01 10:01:12 +03:00
Jim Minter
86cfc17470
add yaml support
2016-12-20 12:57:15 +00:00
Álvaro
d3da35e3d0
Fixes and adds tests after merge
2016-10-26 16:59:55 +01:00
marco
af92007434
Merge remote-tracking branch 'upstream/master'
2016-10-20 13:42:25 +02:00