Skip to content

Step 1.4: Clone-on-write#5

Open
ziimakc wants to merge 1 commit intomainfrom
1_4_cow
Open

Step 1.4: Clone-on-write#5
ziimakc wants to merge 1 commit intomainfrom
1_4_cow

Conversation

@ziimakc
Copy link
Owner

@ziimakc ziimakc commented Jan 24, 2026

Resolves Step 1.4

Task

Write a simple program which prints out the path to its configuration file. The path should be detected with the following precedence:

  1. default path is /etc/app/app.conf;
  2. if APP_CONF env var is specified (and not empty) then use it with higher priority than default;
  3. if --conf command line argument is specified (error if empty) then use it with the highest priority.

If neither APP_CONF env var nor --conf command line argument is specified, then no allocation should happen for path detection.

Solution

Implement cow path resolution print.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant