Add upgrade instructions for incompatibility error

pull/3/head
Arijit Basu 3 years ago
parent a11dca5a1c
commit e93e815bc4
No known key found for this signature in database
GPG Key ID: 7D7BF809E7378863

2
Cargo.lock generated

@ -1671,7 +1671,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]] [[package]]
name = "xplr" name = "xplr"
version = "0.2.14" version = "0.2.15"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",

@ -1,6 +1,6 @@
[package] [package]
name = "xplr" name = "xplr"
version = "0.2.14" # Update app.rs version = "0.2.15" # Update app.rs
authors = ["Arijit Basu <sayanarijit@gmail.com>"] authors = ["Arijit Basu <sayanarijit@gmail.com>"]
edition = "2018" edition = "2018"
description = "A hackable, minimal, fast TUI file explorer, stealing ideas from nnn and fzf" description = "A hackable, minimal, fast TUI file explorer, stealing ideas from nnn and fzf"

@ -11,10 +11,11 @@ A hackable, minimal, fast TUI file explorer, stealing ideas from <a href="https:
</p> </p>
<h3 align="center"> <h3 align="center">
[<a href="https://github.com/sayanarijit/xplr/wiki/Features">Features</a>]
[<a href="https://github.com/sayanarijit/xplr/wiki/Quickstart">Quickstart</a>] [<a href="https://github.com/sayanarijit/xplr/wiki/Quickstart">Quickstart</a>]
[<a href="https://github.com/sayanarijit/xplr/wiki/Features">Features</a>]
[<a href="https://github.com/sayanarijit/xplr/wiki/Plugins">Plugins</a>] [<a href="https://github.com/sayanarijit/xplr/wiki/Plugins">Plugins</a>]
[<a href="https://github.com/sayanarijit/xplr/wiki">Documentation</a>] [<a href="https://github.com/sayanarijit/xplr/wiki">Documentation</a>]
[<a href="https://github.com/sayanarijit/xplr/wiki/Upgrade-Guide">Upgrade Guide</a>]
[<a href="https://github.com/sayanarijit/xplr/wiki/TODO">TODO</a>] [<a href="https://github.com/sayanarijit/xplr/wiki/TODO">TODO</a>]
</h3> </h3>

@ -14,7 +14,7 @@ use std::fs;
use std::io; use std::io;
use std::path::PathBuf; use std::path::PathBuf;
pub const VERSION: &str = "v0.2.14"; // Update Cargo.toml pub const VERSION: &str = "v0.2.15"; // Update Cargo.toml
pub const TEMPLATE_TABLE_ROW: &str = "TEMPLATE_TABLE_ROW"; pub const TEMPLATE_TABLE_ROW: &str = "TEMPLATE_TABLE_ROW";
@ -396,7 +396,6 @@ impl ExplorerConfig {
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)] #[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub enum ExternalMsg { pub enum ExternalMsg {
/// Explore the present working directory and register the filtered nodes. /// Explore the present working directory and register the filtered nodes.
/// This operation is expensive. So, try avoiding using it too often. /// This operation is expensive. So, try avoiding using it too often.
/// Once exploration is done, it will auto `Refresh` the state. /// Once exploration is done, it will auto `Refresh` the state.
@ -437,10 +436,10 @@ pub enum ExternalMsg {
/// Focus on the first node. /// Focus on the first node.
FocusFirst, FocusFirst,
/// Focus on the last node. /// Focus on the last node.
FocusLast, FocusLast,
/// Focus on the given path. /// Focus on the given path.
/// ///
/// Example: `FocusPath: /tmp` /// Example: `FocusPath: /tmp`
@ -453,10 +452,10 @@ pub enum ExternalMsg {
/// ///
/// Example: `FocusByIndex: 2` /// Example: `FocusByIndex: 2`
FocusByIndex(usize), FocusByIndex(usize),
/// Focus on the absolute `n`th node where `n` is read from the input buffer. /// Focus on the absolute `n`th node where `n` is read from the input buffer.
FocusByIndexFromInput, FocusByIndexFromInput,
/// Focus on the file by name from the present working directory. /// Focus on the file by name from the present working directory.
/// ///
/// Example: `FocusByFileName: README.md` /// Example: `FocusByFileName: README.md`
@ -509,7 +508,7 @@ pub enum ExternalMsg {
/// Select the focused node. /// Select the focused node.
Select, Select,
/// Unselect the focused node. /// Unselect the focused node.
UnSelect, UnSelect,
@ -544,7 +543,7 @@ pub enum ExternalMsg {
/// Log information message. Stored in `$XPLR_LOGS`. /// Log information message. Stored in `$XPLR_LOGS`.
/// ///
/// Example: `LogInfo: launching satellite` /// Example: `LogInfo: launching satellite`
LogInfo(String), LogInfo(String),
/// Log a success message. Stored in `$XPLR_LOGS`. /// Log a success message. Stored in `$XPLR_LOGS`.
@ -717,9 +716,13 @@ impl App {
if config.version != VERSION { if config.version != VERSION {
bail!( bail!(
"incompatible config version {} in {}", "incompatible configuration version in {}
You config version is : {}
Required version is : {}
Visit https://github.com/sayanarijit/xplr/wiki/Upgrade-Guide",
config_file.to_string_lossy().to_string(),
config.version, config.version,
config_file.to_string_lossy().to_string() VERSION,
) )
} else { } else {
let mode = config let mode = config

Loading…
Cancel
Save