Skip to content

Unclear module generator usage #996

@fredo514

Description

@fredo514

Hi,

First of all, let me thank you for the impressive tool you put out there and all the improvements added in 1.0.0!

I'm trying to use Ceedling with a non-standard project structure, e.g.:

src/
├─ foo/
│  ├─ foo.h
│  ├─src/
│  │  ├─ foo.c
│  ├─ tests/
│  │  ├─ test_foo.c
├─ bar/
│  ├─ bar.h
│  ├─src/
│  │  ├─ bar.c
│  ├─ tests/
│  │  ├─ test_bar.c

But I can't find the right settings for creating that structure automatically when using ceedling module:create. The closest I got what setting paths to

:paths:
  :test:
    - +:src/**
  :source:
    - +:src/**
  :include:
    - +:src/** # In simple projects, this entry often duplicates :source
  :support:
    - test/support
  :libraries: []

configuring module_generator with:

:module_generator:
  :path_src: src/
  :path_tst: test/
  :naming: :snake

and calling ceedling module:create[foo/foo]. But it doesn't create the sub-directories I want. I.e. it creates:

src/
├─ foo/
│  ├─ foo.h
│  ├─ foo.c
│  ├─ test_foo.c

What am I doing wrong?

Also, the project.yml generated with ceedling new doesn't use the new path variables (path_src, etc) in the :module_generator: config.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions