Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jaemk committed Jul 28, 2019
1 parent 23476f3 commit 18e05e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [0.6.0]
### Added
- dockerfile for running in kube
- add a default Migrant.toml that defaults to all env vars

### Changed
- the config dir is now determined from the `CONFIG_DIR` env var
instead of using the xdg config dir

## [0.5.1]
### Added

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "transfer"
version = "0.5.2"
version = "0.6.0"
authors = ["James Kominick <[email protected]>"]

[dependencies]
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,8 @@ pub use models::CONFIG;
pub static APPNAME: &'static str = "Transfer";

pub fn config_dir() -> Result<std::path::PathBuf> {
// or use CONFIG_DIR env
Ok(std::env::var("CONFIG_DIR")
.map(|s| std::path::PathBuf::from(s))
.unwrap_or_else(|_| std::env::current_dir().expect("unable to get current_dir"))
.into())
// let xdg_dirs = xdg::BaseDirectories::with_prefix("transfer")?;
// let config_dir = xdg_dirs.create_config_directory("")?;
// Ok(config_dir)
}

0 comments on commit 18e05e9

Please sign in to comment.