Tom Chauveau
51fe199a39
Update doc generator to ignore tests directory
...
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-06-25 17:00:38 +02:00
Andrea Luzzardi
ecb53566e6
cmd doc: skip cue.mod
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-25 16:21:42 +02:00
Solomon Hykes
d7a805f42b
stdlib: move all imports to alpha.dagger.io
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-25 10:31:22 +00:00
Sam Alba
af82c2c910
docs: adds package description to the stdlib Index
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-23 11:05:58 +02:00
Sam Alba
b03e695970
docs: stdlib index sorted alphabetically
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-23 10:53:37 +02:00
Sam Alba
6ff2fed960
cmd/doc: add support for generating package index
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-23 10:53:37 +02:00
Andrea Luzzardi
687c0e33a4
keychain: always ensure the default key is generated
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-17 17:23:11 +02:00
Andrea Luzzardi
b393ecc034
cleanup workspace interface
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-16 18:58:56 +02:00
Andrea Luzzardi
f39a88e644
cue native: environments can reference a module instead of embedding
...
one.
Fixes #631
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-16 18:58:56 +02:00
Andrea Luzzardi
5f849bb13e
cmd: dagger input edit -> dagger edit
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-16 18:58:56 +02:00
Sam Alba
776814910d
cmd/doc: added import path + better titles for package fields
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-16 12:14:26 +02:00
Andrea Luzzardi
12b712b741
docs generation: write package doc as README.md if there are sub-packages
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 18:42:23 -07:00
Andrea Luzzardi
ee8bcfafaa
doc generation: refactor to allow multi-stage processing
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 18:42:10 -07:00
Andrea Luzzardi
fb3e5bbd43
input edit: allow renaming the environment
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 11:34:51 -07:00
Andrea Luzzardi
606398b69a
docs: don't create docs file for empty packages
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:33:39 -07:00
Andrea Luzzardi
b53e2136b7
cmd docs: add frontmatter metadata
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:29:02 -07:00
Andrea Luzzardi
de3ffe0610
cmd docs: fix markdown linter
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:10:01 -07:00
Sam Alba
a7f4cd069f
cmd/output: do not display cue code when value is a struct
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-07 13:27:40 +02:00
Sam Alba
1bfb8d4369
cmd/doc: fixed outputs label
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-07 11:53:03 +02:00
Sam Alba
669a47a159
cmd/doc: implemented stdlib walk
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 16:33:02 +02:00
Sam Alba
3b92f70416
cmd/doc: added support for json
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 09:01:32 +02:00
Sam Alba
dd8aae893c
cmd/doc: added support for markdown
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 09:01:32 +02:00
Sam Alba
92d993f434
cmd/doc: added support for text format
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 09:01:32 +02:00
Sam Alba
8c3c934f3c
doc: finished structure, supports title
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 09:01:32 +02:00
Sam Alba
7b4421b9a0
cmd/doc: boiler plate and for inputs / outputs scanning
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 09:01:32 +02:00
Sam Alba
66929f8a63
compiler.Value abstraction for docstring and incompletekind
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-04 09:01:32 +02:00
Andrea Luzzardi
14a83a0680
Merge pull request #530 from samalba/env-outputs
...
Support Outputs list
2021-06-01 19:47:47 -07:00
Andrea Luzzardi
413dec63a0
Merge pull request #529 from grouville/dagger_compute-out_of_bound
...
dagger compute out-of-bound
2021-06-01 13:29:34 -07:00
Andrea Luzzardi
e86cb7be6d
Merge pull request #535 from aluzzardi/dagger-homedir
...
use ~/.config/dagger rather than ~/.dagger
2021-06-01 13:23:43 -07:00
Andrea Luzzardi
c5c586ff71
use ~/.config/dagger rather than ~/.dagger
...
since `.dagger` directories have a special meaning now because of gitflow,
it's better not to have a `~/.dagger` since it's not a workspace and
it confuses dagger (e.g. `dagger new` from $HOME).
We don't store state there anymore, just keys and the last version
check, so it's okay to be in ~/.config IMO
Looking at my system, in ~/.config there's `gcloud`, `gatsby`, `gh`,
`yarn`, and others so it seems like a pretty common location.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-01 12:38:14 -07:00
Solomon Hykes
a2cd2d7d1e
Remove out-of-date cli spec file
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-01 15:09:41 +00:00
Sam Alba
10d1b01f2a
cmd/output: list now lists all outputs everytime, even if not concrete - also allows to show outputs even if the env was never computes (based on UX feedback)
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-01 14:14:02 +02:00
Sam Alba
03d58e074f
cmd/input: changed list output based on feedback
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-06-01 14:12:37 +02:00
Sam Alba
efb4ee209e
cmd/up: disable output list when not a tty + better error handling
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 18:25:58 +02:00
Sam Alba
571b5c8618
cmd/up: downgrade output list error from Fatal to Warning
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 18:04:48 +02:00
Sam Alba
d6b6142065
cmd/up: show outputs at the end of the config execution
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 16:14:57 +02:00
Sam Alba
270d8b4775
cmd/output: implemented list --all
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:55:44 +02:00
Sam Alba
1a59c9c40b
cmd/output: added support for listing outputs
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:25:02 +02:00
Sam Alba
91c2acd564
cmd/input: list filters out \\n
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 15:21:39 +02:00
Guillaume de Rouville
d74efa2420
Fix index out of bound for Dagger compute inputs + add tests ["input-dir", "input-git", input-string"]
...
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-05-31 12:11:54 +02:00
Sam Alba
ba5078ef26
cmd/dagger: share code for input/output management
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-31 11:08:26 +02:00
Andrea Luzzardi
9deb80c487
dagger input edit
...
See and edit all the inputs in bulk using $EDITOR
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 18:02:12 -07:00
Andrea Luzzardi
b627b4bc88
add support for excludes in input dir
...
This adds support for `--include` and `--exclude` for directory inputs.
For instance, this is what you would want to use when passing dagger
repository as an input:
```
inputs:
repository:
dir:
path: .
exclude:
- '**/node_modules'
- cmd/dagger/dagger
- cmd/dagger/dagger-debug
```
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 16:22:32 -07:00
Andrea Luzzardi
b1c50671b3
fix build for non-cgo
...
- use mitchellh/go-homedir rather than os/user to work on non cgo
enabled builds (e.g. release binaries)
- updated Makefile to disable cgo on dev binaries
Fixes #519
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 11:48:50 -07:00
Andrea Luzzardi
99cf7d0ae0
secret: fix terminal prompt for windows
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-27 14:08:49 -07:00
Sam Alba
80e1208474
cmd/up: added support for checking for user inputs concreteness before the running the config
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-27 18:46:54 +02:00
Sam Alba
b47512ba6e
Merge pull request #508 from aluzzardi/cue-fmt
...
fix cue fmt
2021-05-27 00:38:37 -07:00
Sam Alba
1f29c2f598
Merge pull request #505 from samalba/gitflow-help
...
Gitflow help
2021-05-27 00:36:53 -07:00
Andrea Luzzardi
af32e60b37
fix cue fmt
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-26 18:46:13 -07:00
Sam Alba
97be7b917a
cmd/new+init: added instructions for new + fix for init arg
...
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 17:41:37 +02:00