Repository navigation
Closed
Labels
enhancementNew feature or request
Description
At the moment, we need a given hierarchy of folders to run.
Unfortunately, this may complicate the usage for a new user (or any non-developer in general), since you have to be manage part of the structure manually, but then it has to respect some constraints.
To improve UX, I propose to implement to following features, keeping them simple, but useful:
- a unique subcommand to manage a project structure, let's call it
pineko scaffold(name to decide, take it as a placeholder) - a command to setup a new project
pineko scaffold new(possibly aliased topineko newfor simplicity)- it should create all the directories, and possibly download some stuffs (e.g. yamldb)
- a function to verify correctness of the project structure, since it should be declared in the config file
pineko.toml,check_folders()- it should be run by every subcommand of
pineko scaffoldbefore running (simple to implement inclick, we just need to put the call in the group function)
@command.group("scaffold") def subcommand(): check_folders()
- it should be run by every subcommand of
- a subcommand
pineko scaffold checkto just runcheck_folders()(and print a simple and nice report if something goes wrong)
Since paths here are crucial, this is related to #51
Optionally:
- a subcommand
pineko scaffold updateto download a new version of remote resources (e.g. yamldb)- in case, better to keep the old one as backup (put in a
.old-datafolder somewhere, and mangle with a timestamp)
- in case, better to keep the old one as backup (put in a
- a subcommand
pineko scaffold repair, to fix the structure according to the current one spelled out inpineko.toml
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
felixhekhorn commentedon Dec 6, 2022
theory- since this refers to the "theory" mode of pineko (remember there is also the "file" mode, which is handy from time to time). We may reconsider our choice of scoping "theory commands" and keep "file commands" global (such ascompare)alecandido commentedon Feb 13, 2023
Definitely: it looks to me that the theory mode is by now more useful than the file mode. But we can discuss :)
@felixhekhorn @andreab1997