Commit Graph

10 Commits

Author SHA1 Message Date
Marcos Lilljedahl
868e96d06a Allow to specify template when running dagger project init
Adds the ability to select a template which will create a new file
in the CWD with the template name. Templates present in the
"cmd/dagger/project/templates" directory are automatically embedded in the dagger
binary when building and then listed in the `dagger project init` help output.

Usage:

    dagger project init -t <template_name>

One idea that we had while pairing on this is to eventually try
improving this UX by extending the `dagger project` command by adding
sub-commands like `dagger project templates [list, new, output, ...]`.

Pair: gerhard

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-04-12 21:03:21 -03:00
teddylear
7cf8c280af tests: Adding update to project info for negative test case
Signed-off-by: teddylear <teddylear@gmail.com>
2022-04-07 17:17:42 -04:00
Kenneth Lear
abe1e36032 test: Update project info test to fix issue
Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
2022-04-06 22:56:56 -04:00
Kenneth Lear
ed236d4934 test: Fixing project info integration test
Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
2022-04-06 21:47:46 -04:00
Kenneth Lear
5759071bd7 test: Update project info command to pass lint and test to make sure TEMPDIR is there
Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
2022-04-06 21:26:46 -04:00
Kenneth Lear
90d3724d6a feat: Adding project info command to find where project is located
Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
2022-04-06 17:52:50 -04:00
Tom Chauveau
19c0f999f4
Fix export cache issue
Resolve #1551 and #1020.
We are never returning the result of solved operations so Buildkit could not
cache the layer.
This commit implements a simple system to forward operations' result to the
main build to cache it.

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-03-31 20:36:50 +02:00
Richard Jones
096c936aaf
removes old .gitignore, adds new .gitattributes
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-10 14:31:57 -07:00
Richard Jones
57cea9eb6c
implements dagger project update
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-08 16:58:20 -07:00
Richard Jones
7bcf9a9402
Implements dagger project init
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 15:44:11 -07:00