Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
xuorig committed Jul 6, 2021
1 parent b905b32 commit acd7e8d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
authors = ["xuorig <[email protected]>"]
edition = "2018"
license-file = "LICENSE.txt"
repository = "https://github.com/xuorig/heraclitus/"
repository = "https://github.com/xuorig/anicca/"
readme = "README.md"
keywords = ["OpenAPI", "Swagger"]
categories = ["command-line-utilities"]
Expand Down
3 changes: 2 additions & 1 deletion src/bin/cli.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use anicca::cli::Anicca;
use structopt::StructOpt;

fn main() {
let app = heraclitus::cli::Heraclitus::from_args();
let app = Anicca::from_args();
app.run();
}
10 changes: 0 additions & 10 deletions src/cli/docs.rs

This file was deleted.

20 changes: 3 additions & 17 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
pub(crate) mod diff;
pub(crate) mod docs;
pub(crate) mod formatters;

use structopt::StructOpt;

#[derive(Debug, StructOpt)]
#[structopt(
name = "Heraclitus",
about = "
Read the getting started guide by running:
$ heraclitus docs
Generate a human friendly diff:
$ heraclitus diff <base.json> <head.json>
"
)]
pub struct Heraclitus {
#[structopt(name = "Anicca")]
pub struct Anicca {
#[structopt(subcommand)]
pub command: Command,
}

#[derive(Debug, StructOpt)]
pub enum Command {
/// Open the Hercalitus docs online
Docs(docs::DocsCommand),

/// Diff two OpenAPI descriptions
Diff(diff::DiffCommand),
}

impl Heraclitus {
impl Anicca {
pub fn run(&self) {
match &self.command {
Command::Docs(command) => command.run(),
Command::Diff(command) => command.run(),
}
}
Expand Down

0 comments on commit acd7e8d

Please sign in to comment.