spec_driven_docs/commands/
license.rs1use crate::cli::license::LicenseArgs;
7use crate::context::AppContext;
8use crate::error::AppError;
9use crate::output;
10
11pub fn run(_ctx: &AppContext, args: LicenseArgs) -> Result<(), AppError> {
17 if !args.method && !args.payload {
18 output::line(crate::embedded::LICENSE.trim_end_matches('\n'));
19 return Ok(());
20 }
21 if args.method {
22 output::line(crate::embedded::LICENSE_CC_BY.trim_end_matches('\n'));
23 }
24 if args.payload {
25 output::line(crate::embedded::LICENSE_MIT.trim_end_matches('\n'));
26 }
27 Ok(())
28}