Compare commits

..

No commits in common. '7150eb75b456696ea10e58c7fd12bae8b686e0ad' and '3df7fc36d5518baca6fd4ce3c4ca3976ee2a49c1' have entirely different histories.

3
.gitignore vendored

@ -14,6 +14,3 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information # MSVC Windows builds of rustc generate these, which store debugging information
*.pdb *.pdb
# SECRETS
secrets/

@ -1,5 +0,0 @@
{
"rust-analyzer.linkedProjects": [
".\\Cargo.toml"
]
}

@ -1,9 +0,0 @@
[package]
name = "spekkio"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
poise = "0.5.5"

@ -1,20 +0,0 @@
use std::{io::prelude::*, fs::File, path::Path };
pub fn load_token(file_name: &str) -> String
{
let mut file = match File::open(Path::new(file_name))
{
Ok(file) => file,
Err(why) => panic!("Could not open token file {}: {}", Path::new(file_name).display(), why),
};
let mut s = String::new();
let token = match file.read_to_string(&mut s)
{
Err(why) => panic!("couldn't read {}: {}", Path::new(file_name).display(), why),
Ok(_) => s,
};
token
}

@ -1,10 +0,0 @@
mod commands;
mod data_loader;
fn main()
{
let token = data_loader::load_token("secrets/test.txt");
println!("test data: {}", token);
}