Write code to get auth key
This commit is contained in:
parent
1e5bdd9e8c
commit
5fdc8cb50e
|
@ -1,3 +1,9 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
use std::env;
|
||||
|
||||
fn get_auth_key() -> Option<String> {
|
||||
env::var("AUTH_KEY").ok()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _auth_key = get_auth_key().expect("Could not find authorization key");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue