-
Notifications
You must be signed in to change notification settings - Fork 138
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
tink-cli should parse template name from the template itself #377
Comments
@parauliya can you tell us how you want to fix this issue first? |
Sure @gianarb . |
I think it is created and if other commands have the same issue, please remove the flag as well! |
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…te/update' command in tink-cli Signed-off-by: parauliya <[email protected]>
…mand (#385) ## Description This PR will remove the `name` flag from the `tink template create/update` command in tink-cli. ## Why is this needed Fixes: #377 ## How Has This Been Tested? This has been tested manually over the vagrant setup. ## How to migrate? **Current Behaviour**: At present, the `tink template create -n <name>` allows users to provide a name to a workflow template. A user can also update this name using the `tink template update -n <new-name>` command. The workflow template also has the `name` field. So, a workflow is getting itss name from two different and places and this can be confusing to users. ``` version: "0.1" name: hello_world_workflow global_timeout: 6 tasks: - name: "hello world" worker: "{{.device_1}}" actions: - name: "hello_world" image: hello-world timeout: 60 ``` **New Behaviour**: With this PR, `tink template create` and `tink template update` CLI will _not_ accept a name for the template to be created or updated. Instead, the template name will be picked from the `name` field in the template definition. The existing users need to run the `tink template update <id> --file <template-file>` command. This will update the name of each template as per the value of `name` field in the template definition. ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [x] provided instructions on how to upgrade
@gianarb Would be cool if you can update the documentation where the template name flag isn't mentioned during the workflow creation. I added an issue to track it. #448. But actually, I find having a |
Hey @moadqassem the documentation is based on the last tagged version of the sandbox. It still supports The PR you opened to the documentation will be merged as long as other updates as soon as we are ready to bump sandbox! 👍 |
Why do we have a template name cli arg when
name
is a require template field?tink-cli
should use the name in the template. Doing otherwise can lead to lots of confusion.The text was updated successfully, but these errors were encountered: