awslabs / seed-farmer

Seed-Farmer is an orchestration tool that works with AWS CodeSeeder and acts as an orchestration tool modeled after GitOps deployments. It has a CommandLine Interface based in Python, leverages modular code deployments defined by declarative manifests, and includes change detection and deployment optimization.
https://seed-farmer.readthedocs.io/en/latest/
Apache License 2.0
49 stars 15 forks source link

chore: Adds `seedfarmer --version` #736

Closed malachi-constant closed 1 month ago

malachi-constant commented 1 month ago

Issue #, if available: Raised internally.

If a user wants to validate installation without running an explicit CLI command e.g. seedfarmer version: seedfarmer.yaml is required in the path.

seedfarmer.errors.seedfarmer_errors.SeedFarmerException: The seedfarmer.yaml was not found at the root of your project. Please set it and rerun.

Description of changes:

Usage

> seedfarmer --version
seedfarmer, version 5.1.0.dev0

Additional Impact

This seems to also allow --help to execute without imports as well.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

malachi-constant commented 1 month ago

One afterthought: maybe we should also change the seedfarmer version command to not require seedfarmer.yaml?

Yea that would be ideal, but a good amount more refactoring to do so, can discuss with @dgraeber