Comments (3)
Original reply by @mpvl in cuelang/cue#39 (comment)
The higher-level pkg for tool is not yet committed as it still needs some work. Sorry about that. Right now the raw interface is available only, and the documentation are the examples in the kubernetes tutorial. The infrastructure for supporting these packages is done, though, and the APIs are mostly written. It is mostly a matter of picking the right place in the directory structure: the pkg directory contains the core library, but the tools libraries will only be available to the scripting layer. So ideally there is a nice directory outside the pkg dir to house them.
from cue.
Original reply by @garethr in cuelang/cue#39 (comment)
Ah, makes sense. I was trying out some of the examples in the inline help and ran into issues with the missing packages. I was in particular interested in outputting to files which I presume is in there? eg.
task write: file.Append({
from cue.
Original reply by @mpvl in cuelang/cue#39 (comment)
The solution is simple, actually. It is fine (and possibly useful) to gives access the tool definitions within the normal package directory --- it is just data ---, as long as the corresponding functionality is not accessible from the non-tool cue files. So it can share the pkg directory without issue.
I'll work on getting this in asap.
from cue.
Related Issues (20)
- mod: verbose mode
- mod: ignore files with "ignore" tags
- internal/mod/modresolve: provide "none" as a special registry
- mod: panic when running `cue export` on non-relative path HOT 2
- tools/flow: cue task not execute, when result in non-task value HOT 10
- mod: allow imports of main module from within an excluded directory
- cue: Value.ReferencePath gives wrong path for reference "within" a value HOT 1
- `cue get go` renders time.Duration with invalid CUE HOT 2
- cuelang.org: columns break markdown links inside the same page
- cuelang.org: preprocessor: zero output in serve mode when hidden script changes
- cuelang.org: add bluesky link next to the twitter one HOT 1
- cuelang.org: not enough distinction between terminal and code blocks HOT 2
- cuelang.org: "about" section at the bottom doesn't seem useful
- cuelang.org: frontend: 404 page could pre-populate the search box HOT 2
- cuelang.org: preprocessor leaves stale cache files around
- cue import puts long JSON array on a single line
- cuelang.org: broken CUE syntax highlighting with Hugo 0.124 HOT 1
- cuelang.org: script block "copy" button contains a trailing newline
- Can't pull module published in harbor HOT 2
- CUE eval directory path panics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cue.