[FEAT] automate the adding of modules. #1

Open
opened 2024-03-01 05:26:20 +00:00 by jakegoodwin · 2 comments
Owner

To make the template more usable and efficient the process of adding in a new subdir to the src direcotry should be automated.

List of actions that should take place:

  • creates dir in 'src' dir.
  • creates dir in 'tests'
  • adds to the src cmake lists
  • adds to the tests cmake lists.
  • preforms regex to change the name in example module files.
  • auto adds to git tracking.
  • offers user choice of type(shared lib, static lib, executable etc)
  • asks user if module needs to use wrapped funcs--> if so then adds option to cmakelists file.
To make the template more usable and efficient the process of adding in a new subdir to the `src` direcotry should be automated. List of actions that should take place: - [x] creates dir in 'src' dir. - [x] creates dir in 'tests' - [x] adds to the src cmake lists - [x] adds to the tests cmake lists. - [x] preforms regex to change the name in example module files. - [ ] auto adds to git tracking. - [ ] offers user choice of type(shared lib, static lib, executable etc) - [ ] asks user if module needs to use wrapped funcs--> if so then adds option to cmakelists file.
jakegoodwin added the
enhancement
label 2024-03-01 05:26:26 +00:00
jakegoodwin self-assigned this 2024-03-01 05:26:32 +00:00
Author
Owner

Most the features have been implemented. I'm no realizing I should probably add some checks for if the module already exists so it doesn't overwrite existing modules.

Also a way to delete a module might be nice.

Most the features have been implemented. I'm no realizing I should probably add some checks for if the module already exists so it doesn't overwrite existing modules. Also a way to delete a module might be nice.
Author
Owner

Added the checks for the existing directory

Added the checks for the existing directory
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TDD-Templates/cmake-cmocka-template#1
No description provided.