Design small command-line tools with stable argument, stream and status contracts. Reuse the same curriculum with a focus on public interfaces and regression tests. Complete the linked practice, projects and offline cumulative assessment.
Learning outcomes
Earn a cryptographically verifiable Certificate of Completion to showcase on LinkedIn and your resume upon finishing all module lessons and assessments.
Construct a fixed command vector with exact argument boundaries. Practice: Complete Command Wrapper. Compare no arguments, an empty argument and a literal wildcard. Inspect array elements before execution; never use eval.
Design small CLI helpers with explicit argument and status contracts. Practice: Write a fixed validate function and a format function in a trusted local module. Call both with quoted values and show a nonzero validation status without calling the formatter.
Keep machine-readable stdout separate from diagnostics. Practice: Make a toy CLI that prints one data line on stdout and one warning on stderr; capture both independently and demonstrate the difference between two descriptor orders.
Reason about child processes, command lookup and pipeline statuses in CLI wrappers. Practice: Use a fixed builtin and child Bash to show when shell state is isolated. Demonstrate a two-stage failing pipeline and collect both statuses immediately.
Define stable output formats and reject invalid records without emitting partial data. Practice: Revisit Log Severity Report as a CLI subcomponent. Test empty input and a line containing ERROR in an INFO message; design an extra invalid record after two valid records.
Specify and test a short-option interface with exact argument and error semantics. Practice: Complete CLI Option Parser. Compare -nNAME with -n NAME, missing values, repeated -v and trailing operands after --. Do not change the original project contract.
Propagate the wrapped task status while maintaining predictable resource ownership. Practice: Revisit Failure-aware Wrapper. Compare normal and failing task status, and demonstrate a missing optional parameter in a separate nounset fixture. Explain why trap cleanup cannot guarantee crash recovery.
Verify CLI contracts with positive, expected-negative and malformed-output cases. Practice: Complete Regression Test Suite. Add a private toy fixture with a correct status but incorrect stderr; predict which case fails and explain why.