license
This commit is contained in:
parent
fcf2a49fef
commit
c579f53ea9
|
|
@ -1200,7 +1200,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rasp_mgr"
|
name = "rasp_mgr"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-std",
|
"async-std",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rasp_mgr"
|
name = "rasp_mgr"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
|
description = "A simple server manager for local newtrok"
|
||||||
|
authors = ["PiyushXCoder <piyush.raj.kit@gmail.com>"]
|
||||||
|
license = "GPL 3.0"
|
||||||
|
readme = "README.md"
|
||||||
|
keywords = ["server", "raspberry pi"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Rasp Manager
|
||||||
|
A simple server manager for local newtrok. Its quite helpful when you are hosting something on raspberrypi.
|
||||||
|
|
||||||
|
Feel free to add more commands in `src/command.rs`. Contributions and improvements are always welcomed.
|
||||||
|
|
||||||
|
|
||||||
|
# LICENSE
|
||||||
|
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, either version 3 of the License, or
|
||||||
|
at your option) any later version.
|
||||||
|
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
|
@ -1,3 +1,16 @@
|
||||||
|
/*
|
||||||
|
This file is part of Rasp Manager.
|
||||||
|
Rasp Manager 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, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
Rasp Manager 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 Rasp Manager. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,18 @@
|
||||||
use clap::{App, Arg};
|
/*
|
||||||
|
This file is part of Rasp Manager.
|
||||||
|
Rasp Manager 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, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
Rasp Manager 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 Rasp Manager. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
|
use clap::{App, Arg};
|
||||||
|
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub static_dirs: Option<String>,
|
pub static_dirs: Option<String>,
|
||||||
|
|
@ -10,7 +23,7 @@ pub struct Config {
|
||||||
impl Config {
|
impl Config {
|
||||||
pub fn generate() -> Config {
|
pub fn generate() -> Config {
|
||||||
let matches = App::new("Rasp Manager")
|
let matches = App::new("Rasp Manager")
|
||||||
.about("Manager for raspberry pi")
|
.about("A simple server manager for local newtrok")
|
||||||
.version(env!("CARGO_PKG_VERSION"))
|
.version(env!("CARGO_PKG_VERSION"))
|
||||||
.author(env!("CARGO_PKG_AUTHORS"))
|
.author(env!("CARGO_PKG_AUTHORS"))
|
||||||
.arg(Arg::with_name("addr")
|
.arg(Arg::with_name("addr")
|
||||||
|
|
|
||||||
14
src/disks.rs
14
src/disks.rs
|
|
@ -1,3 +1,17 @@
|
||||||
|
/*
|
||||||
|
This file is part of Rasp Manager.
|
||||||
|
Rasp Manager 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, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
Rasp Manager 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 Rasp Manager. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
use std::{ffi::CString, os::raw::c_char};
|
use std::{ffi::CString, os::raw::c_char};
|
||||||
use std::{fmt, error::Error};
|
use std::{fmt, error::Error};
|
||||||
|
|
|
||||||
13
src/main.rs
13
src/main.rs
|
|
@ -1,3 +1,16 @@
|
||||||
|
/*
|
||||||
|
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, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
use std::{path::Path, process::Command};
|
use std::{path::Path, process::Command};
|
||||||
|
|
||||||
use tide::prelude::*;
|
use tide::prelude::*;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>Rasp Manager</h1>
|
<h1>Rasp Manager</h1>
|
||||||
<p>Simple manager to manage Raspberry Pi 4</p>
|
<p>A simple server manager for local newtrok</p>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>Rasp Manager</h1>
|
<h1>Rasp Manager</h1>
|
||||||
<p>Simple manager to manage Raspberry Pi 4</p>
|
<p>A simple server manager for local newtrok</p>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>Rasp Manager</h1>
|
<h1>Rasp Manager</h1>
|
||||||
<p>Simple manager to manage Raspberry Pi 4</p>
|
<p>A simple server manager for local newtrok</p>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/">Home</a></li>
|
<li><a href="/">Home</a></li>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue