From c579f53ea9adedc8a4616333d6c18c5e7992bad1 Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Mon, 28 Jun 2021 07:03:28 +0530 Subject: [PATCH] license --- Cargo.lock | 2 +- Cargo.toml | 7 ++++++- README.md | 19 +++++++++++++++++++ src/command.rs | 13 +++++++++++++ src/config.rs | 17 +++++++++++++++-- src/disks.rs | 14 ++++++++++++++ src/main.rs | 13 +++++++++++++ static/commands.html | 2 +- static/exec.html | 2 +- static/index.html | 2 +- 10 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 README.md diff --git a/Cargo.lock b/Cargo.lock index 036b536..92abc4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1200,7 +1200,7 @@ dependencies = [ [[package]] name = "rasp_mgr" -version = "0.1.0" +version = "1.0.0" dependencies = [ "async-std", "clap", diff --git a/Cargo.toml b/Cargo.toml index 2daac2a..19ce046 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,11 @@ [package] name = "rasp_mgr" -version = "0.1.0" +version = "1.0.0" +description = "A simple server manager for local newtrok" +authors = ["PiyushXCoder "] +license = "GPL 3.0" +readme = "README.md" +keywords = ["server", "raspberry pi"] edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..15b1248 --- /dev/null +++ b/README.md @@ -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 . diff --git a/src/command.rs b/src/command.rs index e0da630..9c978f0 100644 --- a/src/command.rs +++ b/src/command.rs @@ -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 +*/ use std::process::Command; diff --git a/src/config.rs b/src/config.rs index 4f1037e..13fb88d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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 +*/ +use clap::{App, Arg}; pub struct Config { pub static_dirs: Option, @@ -10,7 +23,7 @@ pub struct Config { impl Config { pub fn generate() -> Config { let matches = App::new("Rasp Manager") - .about("Manager for raspberry pi") + .about("A simple server manager for local newtrok") .version(env!("CARGO_PKG_VERSION")) .author(env!("CARGO_PKG_AUTHORS")) .arg(Arg::with_name("addr") diff --git a/src/disks.rs b/src/disks.rs index 5ec6f31..0745d3c 100644 --- a/src/disks.rs +++ b/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 +*/ + use std::{ffi::CString, os::raw::c_char}; use std::{fmt, error::Error}; diff --git a/src/main.rs b/src/main.rs index f98f214..019777f 100644 --- a/src/main.rs +++ b/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 . +*/ + use std::{path::Path, process::Command}; use tide::prelude::*; diff --git a/static/commands.html b/static/commands.html index 410b1e5..0f5b9ad 100644 --- a/static/commands.html +++ b/static/commands.html @@ -11,7 +11,7 @@

Rasp Manager

-

Simple manager to manage Raspberry Pi 4

+

A simple server manager for local newtrok