forked from hairyhenderson/gomplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gencel - initial commit * Improved function overload name with correct suffix * Can accept the whole pacakage as input. Instead of passing in a particular file path, now it's possible to provide the package directory and gencel will generate on all the files of the package * Added more conversions and support for ignoring certain funcs with regex * Added more type conversions and a simple test * WIP: Added support for multiple returns * Added gen files * Added support for multiple returns * Handle package namespace Example: Don't use just `IfAddrs` use the full name with pkg name also `sockaddr.IfAddrs` * Handle maps & arrays. Ignore _gen.go file as the source * Ignore variadic functions for now * Added tests for funcs that have multiple returns * Created a celEnv var that consists of all the generated cel function * Added namespaces to cel function to avoid collion for same function name and type. Example: the function `Match(pattern, name interface{}) (matched bool, err error)` is defined for filepath, path. Now they're accessible as path.Match & filepath.Match * WIP: Support for variadic functions. Renamed naming scheme for the cel funcs * Added support for variadic functions ✔ * Added more test cases * Handle imports for some files. * chore: clean up * don't generate cel functions for aws, gcp, and few others * do not namespace some functions * chore: removed build github workflows * fix: lint errors and disabled some linters
- Loading branch information
1 parent
ba6c978
commit ed70a73
Showing
33 changed files
with
5,010 additions
and
243 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.git | ||
.bin | ||
bin | ||
report.xml | ||
./gomplate | ||
*.cid | ||
*.iid | ||
*.out | ||
|
||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.