-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
142 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Kytes | ||
# Kytz | ||
|
||
> Soaring in the Cloud, but you pull the strings. | ||
Kytz (pronounced Kites) is a set of tools and standards to enable user agency and credible exit. |
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 was deleted.
Oops, something went wrong.
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,25 @@ | ||
//! Configuration for the Kytz CLI. | ||
use std::path::{Path, PathBuf}; | ||
|
||
use crate::{Error, Result}; | ||
|
||
/// Name of directory that wraps all kytz files in a given application directory | ||
const KYTZ_DIR: &str = "kytz"; | ||
|
||
/// Returns the path to the user's kytz config directory. | ||
pub fn kytz_config_root() -> Result<PathBuf> { | ||
// if let Some(val) = env::var_os("IROH_CONFIG_DIR") { | ||
// return Ok(PathBuf::from(val)); | ||
// } | ||
let cfg = dirs_next::config_dir().ok_or_else(|| { | ||
Error::Generic("operating environment provides no directory for configuration".to_string()) | ||
})?; | ||
Ok(cfg.join(KYTZ_DIR)) | ||
} | ||
|
||
/// Path that leads to a file in the iroh config directory. | ||
pub fn kytz_config_path(file_name: impl AsRef<Path>) -> Result<PathBuf> { | ||
let path = kytz_config_root()?.join(file_name); | ||
Ok(path) | ||
} |
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 @@ | ||
pub mod config; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,5 @@ | ||
#![allow(unused)] | ||
mod crypto; | ||
mod error; | ||
|
||
pub use crate::error::{Error, Result}; |
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