Skip to content

Commit

Permalink
devenv: fixup generate cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Feb 16, 2025
1 parent 118c58b commit becbbfe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions devenv/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::log::LogFormat;
use clap::{crate_version, Parser, Subcommand};
use indoc::indoc;
use std::path::PathBuf;
use tracing::error;

Expand Down Expand Up @@ -184,9 +185,16 @@ pub enum Commands {
#[command(about = "Scaffold devenv.yaml, devenv.nix, .gitignore and .envrc.")]
Init { target: Option<PathBuf> },

#[command(about = "Generate devenv.yaml and devenv.nix using AI")]
#[command(
about = "Generate devenv.yaml and devenv.nix using AI",
long_about = indoc! {"
Generate devenv.yaml and devenv.nix using AI.
Use of this feature is subject to the terms of service at https://devenv.new/tos
"}
)]
Generate {
#[arg(num_args=0.., trailing_var_arg = true)]
#[arg(num_args=1.., required = true, trailing_var_arg = true)]
description: Vec<String>,

#[clap(long, default_value = "https://devenv.new")]
Expand Down

0 comments on commit becbbfe

Please sign in to comment.