Commit Graph

121 Commits

Author SHA1 Message Date
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
Sam Alba
1f4bbc53ad cmd/init: print workspace path
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 16:26:13 +02:00
Sam Alba
9d1609187e cmd/init,new: added short description
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 16:25:42 +02:00
Sam Alba
16553b2e2a cmd/input: added support for Description from cue doc string
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-26 12:03:22 +02:00
Andrea Luzzardi
af776b8abe cleanup: move packages to top level, change vanity URL
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 16:54:00 -07:00
Andrea Luzzardi
e13153a284 cleanup: split dagger into sub-packages
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 16:53:41 -07:00
Andrea Luzzardi
c7c8c5fa8d tests: fix integration tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 15:17:32 -07:00
Andrea Luzzardi
90abadf0de gitflow: multi env support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 13:07:04 -07:00
Andrea Luzzardi
12436c20bc remove delete command
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 13:07:04 -07:00
Andrea Luzzardi
9d416d65f7 secret input type, simplify state format
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 13:07:04 -07:00
Andrea Luzzardi
5442d6b261 remove support for environment paths
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 13:07:04 -07:00
Andrea Luzzardi
b77d1a1e3e gitflow ux
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 13:07:04 -07:00
Sam Alba
a8837aaaed cmd/inputs: added --all option to list
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 17:39:17 -07:00
Sam Alba
c86f75f730 cmd/input: implemented UI for list cmd
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:04:02 -07:00
Sam Alba
ef8995b923 cmd/input: removed unused option
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-21 16:04:02 -07:00
Andrea Luzzardi
36b20c6f9c version: use golang.org/x/term to check terminal
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-19 14:04:49 -07:00
Tom Chauveau
b01b11876d Hide global flags for version command.
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-13 12:22:42 +02:00
Solomon Hykes
668d6ae23f Hide deprecated command "dagger compute"
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-12 16:01:43 -07:00
Solomon Hykes
2237b11bc0 Fix wording in cli usage
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-05-12 14:52:01 -07:00
Sam Alba
c7323e79bc cmd/version: simplified some code + added homebrew support
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-05-07 15:11:23 -07:00
Tom Chauveau
3bea6d5d93 Cancel check if dagger is not run manually
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-07 15:46:20 +02:00
Tom Chauveau
0e320eca70 Update documentation
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-07 15:46:20 +02:00
Tom Chauveau
5f723df36a Add dagger version check
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-07 15:46:19 +02:00
Solomon Hykes
31c4cee255 Extreme git flow: improved.
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-05-04 22:26:06 -07:00
Solomon Hykes
41f8b53069 Prototype: better git-flow
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-05-02 15:17:16 -07:00
Andrea Luzzardi
62eedd6470
Merge pull request #372 from aluzzardi/cue-v0.4.0-alpha.2
bump cue to v0.4.0-alpha.2
2021-04-30 18:18:32 -07:00
Andrea Luzzardi
c32cabf488 list: remove call to Reference as it is deprecated
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-30 18:13:34 -07:00
Tom Chauveau
13b0debbd0 dagger: unset input tests
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-30 20:02:29 +02:00
Tom Chauveau
ced9ab07e5 dagger: unset input
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-04-30 19:59:03 +02:00
Sam Alba
2099381abd implemented version command
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-29 14:35:14 -07:00
Solomon Hykes
e6e8ab390d Rename "deployment" to "environment": code
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-27 13:59:27 -07:00
Andrea Luzzardi
d77c6f46ff
Merge pull request #342 from verdverm/scan-for-inputs
add cmd/input/list to scan a plan for inputs
2021-04-22 18:41:23 -07:00
Tony Worm
6488d41603 add cmd/input/list to scan a plan for inputs
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-04-22 17:39:36 -04:00
Sam Alba
b674ac21b4 cmd/list: better error handling
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-22 11:56:48 -07:00
Sam Alba
825f182ff3 cmd/list: list show active deployment
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-19 17:55:07 -07:00
Andrea Luzzardi
46ab44a69f input: support file/stdin source for text/json/yaml
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-15 13:04:52 -07:00
Andrea Luzzardi
6f57ed1b9d input: support yaml and json inputs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-15 13:04:52 -07:00
Sam Alba
7ed616c772 cmd: fixed typo and removed solved TODO msg
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-14 16:25:10 -07:00
Sam Alba
bbeff0eddb cmd: plugged no-cache option to all relevant commands
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-14 16:21:45 -07:00
Frederick F. Kautz IV
0458c0a838 * add support for --input-file in dagger compute
* secrets now supports bytes
* error reporting for unhandled content data types in WriteFile

Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-11 16:18:59 -07:00
Andrea Luzzardi
60db93a246 client: pass through the deployment directly
we can't serialize Cue in a lossless way. The current architecture has
the frontend serialize the state (plan, input, computed) to Cue files,
then the client loads them back. We lose information by doing this, and
therefore the merge fails.

This change removes the abstraction so that we operate directly on the
cue.Instance.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-08 18:11:06 -07:00
Andrea Luzzardi
10e676923c logger: fix concurrency issue
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-08 16:31:37 -07:00
Andrea Luzzardi
e54f1b0c3a store only computed values in compute layer
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-07 19:37:48 -07:00