Set root package version for new package layers

Open Beginner friendly
#909 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
64/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
cli

Research direction

Start by reading the cmf init version handling and the commands that create package layers, then trace how each command sets the cmfpackage.json version. Make the layer commands use the root package version as their default; done when creating a layer without specifying --version inherits that value, while an explicit version still works.

Written by the indexing model from the issue text.

Description

cmf init has a --version parameter which is used to set the Package version in cmfpackage.json at the Project’s root level.

The commands for creating new package layers also have this parameter, with a default set to 1.0.0.

Setting this default to the value of the root package version would be a nice usability improvement.

Dominant language
C#
Stars
11
Forks
53
Avg merge
4d 47m
Merged PRs (30d)
43

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from criticalmanufacturing/cli

All issues in criticalmanufacturing/cli

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.