-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from tinythings/isbm-defaults
Add defaults, close issue
- Loading branch information
Showing
9 changed files
with
129 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/target | ||
alfad-compile | ||
init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// Defaults and constants | ||
/// | ||
// Main binary name | ||
pub const APLT_MAIN: &str = "alfad"; | ||
|
||
// Ctl applet | ||
pub const APLT_CTL: &str = "alfad-ctl"; | ||
|
||
// Compilation applet | ||
pub const APLT_COMPILE: &str = "alfad-compile"; | ||
|
||
// The /sbin/init | ||
pub const APLT_INIT: &str = "init"; | ||
|
||
/// Sockets | ||
pub const DIR_RUN: &str = "/run/var"; | ||
|
||
/// Configuration directory | ||
pub const DIR_CFG: &str = "/etc/alfad"; | ||
|
||
/// Directory for the run states | ||
pub const DIR_CFG_D: &str = "/etc/alfad/alfad.d"; | ||
|
||
/// Configuration bytecode | ||
pub const FILE_CFG_BT: &str = "alfad.d.cache"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
pub mod action; | ||
pub mod config; | ||
pub mod task; | ||
pub mod ordering; | ||
pub mod validate; | ||
pub mod builtin; | ||
pub mod command_line; | ||
pub mod config; | ||
pub mod def; | ||
pub mod ordering; | ||
pub mod perform_action; | ||
pub mod task; | ||
pub mod validate; | ||
|
||
pub static VERSION: &str = "0.1"; | ||
pub static VERSION: &str = "0.1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Don't argue on 130 width. :-) Just don't. | ||
# No more IBM punchcards here, and your monitor | ||
# is at least 28 inches wide with a decent resolution. | ||
# | ||
# Welcome to the 21st century. Shush! | ||
|
||
max_width = 130 | ||
fn_call_width = 130 | ||
chain_width = 130 | ||
single_line_let_else_max_width = 130 | ||
single_line_if_else_max_width = 130 | ||
use_small_heuristics = "Max" | ||
|
||
# Parser version | ||
edition = "2021" | ||
|
||
# Emacs! | ||
tab_spaces = 4 | ||
|
||
# Perks | ||
use_field_init_shorthand = true | ||
fn_args_layout = "Compressed" | ||
use_try_shorthand = true |