Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect link provided in cue help cmd output #39

Closed
cueckoo opened this issue Jul 3, 2021 · 3 comments
Closed

Incorrect link provided in cue help cmd output #39

cueckoo opened this issue Jul 3, 2021 · 3 comments

Comments

@cueckoo
Copy link
Collaborator

cueckoo commented Jul 3, 2021

Originally opened by @garethr in cuelang/cue#39

The current output points folks to http://cuelang.org/pkg/tool for information on available tasks. However that URL doesn't have any content.

$ curl -i http://cuelang.org/pkg/tool
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
X-Cloud-Trace-Context: 06cb78cc27dfe93e8cc9dd3bde03b522;o=1
Date: Mon, 22 Apr 2019 10:32:57 GMT
Server: Google Frontend
Content-Length: 19

404 page not found
@cueckoo cueckoo closed this as completed Jul 3, 2021
@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

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.

@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

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({

@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant