initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#pid="$$"
|
||||
#echo "scripts pid: ${pid}"
|
||||
#echo "shells pid (hopefully): $(ps -o ppid)"
|
||||
|
||||
echo "pids[-2]: ${pids[-2]}"
|
||||
path=$(pwd)
|
||||
echo "$path"
|
||||
@@ -0,0 +1,2 @@
|
||||
target
|
||||
Cargo.lock
|
||||
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "rust"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.5.0", features = ["derive"] }
|
||||
dirs = "5.0.1"
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
target/debug/rust
|
||||
@@ -0,0 +1 @@
|
||||
stable
|
||||
@@ -0,0 +1,8 @@
|
||||
#![allow(dead_code, unused)]
|
||||
|
||||
use std::io::{Error, Result};
|
||||
|
||||
fn main() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
DeriveInput {
|
||||
attrs: [],
|
||||
vis: Visibility::Public(
|
||||
Pub,
|
||||
),
|
||||
ident: Ident {
|
||||
ident: "Settings",
|
||||
span: #0 bytes(1363..1371),
|
||||
},
|
||||
generics: Generics {
|
||||
lt_token: None,
|
||||
params: [],
|
||||
gt_token: None,
|
||||
where_clause: None,
|
||||
},
|
||||
data: Data::Struct {
|
||||
struct_token: Struct,
|
||||
fields: Fields::Named {
|
||||
brace_token: Brace,
|
||||
named: [
|
||||
Field {
|
||||
attrs: [
|
||||
Attribute {
|
||||
pound_token: Pound,
|
||||
style: AttrStyle::Outer,
|
||||
bracket_token: Bracket,
|
||||
meta: Meta::Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "nested_config",
|
||||
span: #0 bytes(1380..1393),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
vis: Visibility::Public(
|
||||
Pub,
|
||||
),
|
||||
mutability: FieldMutability::None,
|
||||
ident: Some(
|
||||
Ident {
|
||||
ident: "general",
|
||||
span: #0 bytes(1403..1410),
|
||||
},
|
||||
),
|
||||
colon_token: Some(
|
||||
Colon,
|
||||
),
|
||||
ty: Type::Path {
|
||||
qself: None,
|
||||
path: Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "GeneralSettings",
|
||||
span: #0 bytes(1412..1427),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
Comma,
|
||||
Field {
|
||||
attrs: [
|
||||
Attribute {
|
||||
pound_token: Pound,
|
||||
style: AttrStyle::Outer,
|
||||
bracket_token: Bracket,
|
||||
meta: Meta::Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "nested_config",
|
||||
span: #0 bytes(1435..1448),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
vis: Visibility::Public(
|
||||
Pub,
|
||||
),
|
||||
mutability: FieldMutability::None,
|
||||
ident: Some(
|
||||
Ident {
|
||||
ident: "format",
|
||||
span: #0 bytes(1458..1464),
|
||||
},
|
||||
),
|
||||
colon_token: Some(
|
||||
Colon,
|
||||
),
|
||||
ty: Type::Path {
|
||||
qself: None,
|
||||
path: Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "FormatSettings",
|
||||
span: #0 bytes(1466..1480),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
Comma,
|
||||
Field {
|
||||
attrs: [
|
||||
Attribute {
|
||||
pound_token: Pound,
|
||||
style: AttrStyle::Outer,
|
||||
bracket_token: Bracket,
|
||||
meta: Meta::Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "nested_config",
|
||||
span: #0 bytes(1488..1501),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
Attribute {
|
||||
pound_token: Pound,
|
||||
style: AttrStyle::Outer,
|
||||
bracket_token: Bracket,
|
||||
meta: Meta::Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "no_config",
|
||||
span: #0 bytes(1509..1518),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
vis: Visibility::Public(
|
||||
Pub,
|
||||
),
|
||||
mutability: FieldMutability::None,
|
||||
ident: Some(
|
||||
Ident {
|
||||
ident: "styles",
|
||||
span: #0 bytes(1528..1534),
|
||||
},
|
||||
),
|
||||
colon_token: Some(
|
||||
Colon,
|
||||
),
|
||||
ty: Type::Path {
|
||||
qself: None,
|
||||
path: Path {
|
||||
leading_colon: None,
|
||||
segments: [
|
||||
PathSegment {
|
||||
ident: Ident {
|
||||
ident: "StyleSettings",
|
||||
span: #0 bytes(1536..1549),
|
||||
},
|
||||
arguments: PathArguments::None,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
Comma,
|
||||
],
|
||||
},
|
||||
semi_token: None,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user