Public Access
feat: token-authenticated approval API + structured webhook payload #4
+2
-2
@@ -65,7 +65,7 @@ fn main() {
|
||||
if users.is_empty() {
|
||||
println!("No users.");
|
||||
} else {
|
||||
println!("{:<20} {}", "Username", "Created");
|
||||
println!("{:<20} Created", "Username");
|
||||
println!("{}", "-".repeat(40));
|
||||
for (u, c) in users {
|
||||
println!("{:<20} {}", u, c);
|
||||
@@ -115,7 +115,7 @@ fn main() {
|
||||
if keys.is_empty() {
|
||||
println!("No API keys.");
|
||||
} else {
|
||||
println!("{:<20} {}", "Label", "Created");
|
||||
println!("{:<20} Created", "Label");
|
||||
println!("{}", "-".repeat(40));
|
||||
for (l, c) in keys {
|
||||
println!("{:<20} {}", l, c);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use serde::Deserialize;
|
||||
use std::fs;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Config {
|
||||
|
||||
@@ -27,7 +27,6 @@ pub struct SubmitAction {
|
||||
pub run_as: Option<String>,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Serialize)]
|
||||
#[allow(dead_code)]
|
||||
pub struct ActionResult {
|
||||
|
||||
Reference in New Issue
Block a user