Skip to content

feat: introduce Cargo extension CLI for creating packages for building programs#449

Merged
DennisInSky merged 12 commits into
masterfrom
dd/program-templates
Aug 12, 2024
Merged

feat: introduce Cargo extension CLI for creating packages for building programs#449
DennisInSky merged 12 commits into
masterfrom
dd/program-templates

Conversation

@DennisInSky
Copy link
Copy Markdown
Contributor

This PR introduces a binary crate which can be registered as a Cargo extension with the following command line

Usage: cargo-sails new-program [OPTIONS] <PATH>

Arguments:
  <PATH>  Path to the new program

Options:
  -n, --name <NAME>  Name of the new program
      --with-client  Generate client crate alongside the program
      --with-gtest   Generate program tests using 'gtest'. Implies '--with-client'
  -h, --help         Print help

The --with-client and --with-gtest options are not implemented yet and generated program contains some stubs for both client and gtest testing

Resolves #448 .

@DennisInSky DennisInSky self-assigned this Aug 8, 2024
Comment thread rs/cli/src/main.rs
@DennisInSky DennisInSky merged commit 282f42a into master Aug 12, 2024
@DennisInSky DennisInSky deleted the dd/program-templates branch August 12, 2024 11:55
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.

Introduce CLI tooling for creating Cargo package for programs

2 participants