-
-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Nuget Config, Bazel and EdgeQL Support, Fix Output Formatter (#999)
* add nuget configuration support * fix test file * add bazel language * fix output format * add languages to readme * fix serialize * add edgeql * edit readme * add test file * fix edgedb
- Loading branch information
1 parent
3b3ea97
commit 21be04c
Showing
9 changed files
with
137 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- 24 lines 13 code 8 comments 3 blanks --> | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<!-- defaultPushSource key works like the 'defaultPushSource' key of NuGet.Config files. --> | ||
<!-- This can be used by administrators to prevent accidental publishing of packages to nuget.org. --> | ||
<config> | ||
<add key="defaultPushSource" value="https://contoso.com/packages/" /> | ||
</config> | ||
|
||
<!-- Default Package Sources; works like the 'packageSources' section of NuGet.Config files. --> | ||
<!-- This collection cannot be deleted or modified but can be disabled/enabled by users. --> | ||
<packageSources> | ||
<add key="Contoso Package Source" value="https://contoso.com/packages/" /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
|
||
<!-- Default Package Sources that are disabled by default. --> | ||
<!-- Works like the 'disabledPackageSources' section of NuGet.Config files. --> | ||
<!-- Sources cannot be modified or deleted either but can be enabled/disabled by users. --> | ||
<disabledPackageSources> | ||
<add key="nuget.org" value="true" /> | ||
</disabledPackageSources> | ||
</configuration> |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 18 lines 13 code 3 comments 2 blanks | ||
|
||
# build hello-greet | ||
cc_library( | ||
name = "hello-greet", | ||
srcs = ["hello-greet.cc"], | ||
hdrs = ["hello-greet.h"], | ||
) | ||
|
||
# build hello-world | ||
cc_binary( | ||
name = "hello-world", | ||
srcs = ["hello-world.cc"], | ||
deps = [ | ||
":hello-greet", | ||
"//lib:hello-time", | ||
], | ||
) |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# 28 lines 21 code 3 comments 4 blanks | ||
|
||
select User { | ||
name, | ||
friends: { | ||
name | ||
}, | ||
has_i := .friends.name ilike '%i%', | ||
has_o := .friends.name ilike '%o%', | ||
} filter .has_i or .has_o; | ||
|
||
select <User>{} ?? User {name}; | ||
|
||
# update the user with the name 'Alice Smith' | ||
with module example | ||
update User | ||
filter .name = 'Alice Smith' | ||
set { | ||
name := 'Alice J. Smith' | ||
}; | ||
|
||
# update all users whose name is 'Bob' | ||
with module example | ||
update User | ||
filter .name like 'Bob%' | ||
set { | ||
name := User.name ++ '*' | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 20 lines 13 code 4 comments 3 blanks | ||
|
||
# no module block | ||
type default::Movie { | ||
required property title -> str; | ||
# the year of release | ||
property year -> int64; | ||
required link director -> default::Person; | ||
required multi link actors -> default::Person; | ||
} | ||
|
||
type default::Person { | ||
required property first_name -> str; | ||
required property last_name -> str; | ||
} | ||
|
||
abstract link friends_base { | ||
# declare a specific title for the link | ||
annotation title := 'Close contacts'; | ||
} |