Skip to content

Commit

Permalink
Add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
The Pkl Team (automation) authored and holzensp committed Feb 8, 2024
1 parent ef905f8 commit c4cf483
Show file tree
Hide file tree
Showing 10 changed files with 150 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/pkl.pipe/PklProject
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// Tools for constructing pipelines and one-liners in Pkl, by processing text, JSON, or YAML.
///
/// Use Pkl's `--expression` (or `-x`) argument to provide a Pkl expression that will be evaluated
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/examples/github_repos_stars.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// This example shows how to map a Github API response for repos in an org
/// into a list of "reponame: stars". It is the equivalent of the CLI invocation:
///
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/examples/k8s_deployment_images.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// This example shows how to parse a Kubernetes deployment object to get a list of all container images.
/// It is the equivalent of the CLI invocation:
///
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/examples/k8s_name_and_kind.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// This example shows how to parse a Kubernetes deployment object to get a list of all container images.
/// It is the equivalent of the CLI invocation:
///
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/json.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// CLI tool for working with JSON in Pkl, kind of like [jq](https://stedolan.github.io/jq/).
///
/// Example usage:
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/kubeval.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// A Pkl implementation of a Kubernetes manifest validation tool, inspired by
/// [kubeval](https://github.com/instrumenta/kubeval)
///
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/shellshortcuts.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// Shell aliases for using Pkl pipe tools.
///
/// To make using the Pkl pipe tools even easier, this module produces a shell aliases file
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/tests/examples.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
amends "pkl:test"

examples {
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/text.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// Tools for constructing pipelines and one-liners in Pkl.
///
/// Example usage:
Expand Down
15 changes: 15 additions & 0 deletions packages/pkl.pipe/yaml.pkl
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
//===----------------------------------------------------------------------===//
// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//===----------------------------------------------------------------------===//
/// CLI tool for working with YAML in Pkl, kind of like [yq](https://github.com/mikefarah/yq) or
/// [yq](https://github.com/kislyuk/yq).
///
Expand Down

0 comments on commit c4cf483

Please sign in to comment.