-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "publish_diff" command and related functions
Created a new function called "publish_diff" in publish_diff.rs, registered it as a new command in mod.rs, and added related functions in package.rs. This "publish_diff" feature compares local and published versions of a specific package.
- Loading branch information
1 parent
fed47e3
commit 2edeb1f
Showing
3 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
mod private | ||
{ | ||
use std::path::PathBuf; | ||
use crate::*; | ||
|
||
use { action, wtools }; | ||
|
||
use wca::{ Args, Props }; | ||
use wtools::error::{ for_app::Context, Result }; | ||
|
||
/// | ||
/// | ||
/// | ||
|
||
pub fn publish_diff( args : Args ) -> Result< () > | ||
{ | ||
let package : PathBuf = args.get_owned( 0 ).unwrap_or( std::env::current_dir()? ); | ||
|
||
Ok( () ) | ||
} | ||
} | ||
|
||
// | ||
|
||
crate::mod_interface! | ||
{ | ||
orphan use publish_diff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters