Skip to content

Commit

Permalink
Renamed RishkaCc struct to RishkaEnv.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 21, 2024
1 parent 9f7d8e0 commit 0b5ddce
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions tools/rishka-cc/src/env.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
/*
* This file is part of the Rishka distribution (https://github.com/rishka-esp32/rishka-sdk).
* Copyright (c) 2024 Nathanne Isip.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

extern crate colored;

use crate::io;
use colored::Colorize;
use std::env;
use std::process::exit;

pub struct RishkaCc {
pub struct RishkaEnv {
pub library: String,
pub scripts: String
}
Expand Down Expand Up @@ -39,8 +56,8 @@ fn check_env_path(key: &str) -> String {
}
}

pub fn check_req_env() -> RishkaCc {
RishkaCc {
pub fn check_req_env() -> RishkaEnv {
RishkaEnv {
library: check_env_path("RISHKA_LIBPATH"),
scripts: check_env_path("RISHKA_SCRIPTS")
}
Expand Down

0 comments on commit 0b5ddce

Please sign in to comment.