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

non-interactive and dry-run modes for verdi setup type commands #517

Closed
DropD opened this issue Apr 28, 2017 · 1 comment
Closed

non-interactive and dry-run modes for verdi setup type commands #517

DropD opened this issue Apr 28, 2017 · 1 comment
Assignees
Milestone

Comments

@DropD
Copy link
Contributor

DropD commented Apr 28, 2017

This concerns

  • verdi setup
  • verdi quicksetup
  • verdi computer setup
  • verdi computer configure
  • verdi code setup
    and some others.

Motivation:

  • easier to programmatically setup aiida / profiles / compute resources
  • allows tesing without a lot of work to simulate a user inputting data
  • allows copy pasting of setup command lines

Non-Interactive

  • passing a flag (proposed: --non-interactive) guarantees that the command will not prompt for any information
  • information is passed via arguments / options
  • missing information leads to a helpful error message
  • ideally the options also get accepted in interactive mode instead of interactive input

Dryrun

  • passing a flag (proposed: --dry-run) guarantees no side effects on the file system / database
  • as much code of the command as possible should still be run (helps with test coverage)
  • in many cases it is helpful to output some data on what the side effects would have been

Ongoing work

There is a separate repository in which the next generation verdi commandline is being built: https://github.com/DropD/aiida-verdi.

There is a branch in which some of the commands are being backported into the current verdi commandline: https://github.com/DropD/aiida-core/tree/ricoh-verdi-backports.

@DropD DropD added this to the 1.0 release milestone Apr 28, 2017
@DropD DropD self-assigned this Apr 28, 2017
@DropD
Copy link
Contributor Author

DropD commented Sep 12, 2017

PR #606 goes part of the way

@sphuber sphuber modified the milestones: 1.0 release, v1.0.0 May 9, 2018
@DropD DropD closed this as completed Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants