use std::path::PathBuf; use clap::App; use clap::Arg; use clap::ArgGroup; use clap::crate_authors; use clap::crate_version; // Helper types to ship around stringly typed clap API. pub const IDENT_DEPENDENCY_TYPE_BUILD: &'static str = "build"; pub const IDENT_DEPENDENCY_TYPE_RUNTIME: &'static str = "runtime"; pub fn cli<'a>() -> App<'a> { App::new("butido") .author(crate_authors!()) .version(crate_version!()) .about("Generic Build Orchestration System for building linux packages with docker") .arg(Arg::new("hide_bars") .required(false) .multiple(false) .long("hide-bars") .about("Hide all progress bars") ) .arg(Arg::new("database_host") .required(false) .multiple(false) .long("db-url") .value_name("HOST") .about("Overwrite the database host set via configuration. Can also be overriden via environment, but this setting has presendence.") ) .arg(Arg::new("database_port") .required(false) .multiple(false) .long("db-port") .value_name("PORT") .about("Overwrite the database port set via configuration. Can also be overriden via environment, but this setting has presendence.") ) .arg(Arg::new("database_user") .required(false) .multiple(false) .long("db-user") .value_name("USER") .about("Overwrite the database user set via configuration. Can also be overriden via environment, but this setting has presendence.") ) .arg(Arg::new("database_password") .required(false) .multiple(false) .long("db-password") .alias("db-pw") .value_name("PASSWORD") .about("Overwrite the database password set via configuration. Can also be overriden via environment, but this setting has presendence.") ) .arg(Arg::new("database_name") .required(false) .multiple(false) .long("db-name") .value_name("NAME") .about("Overwrite the database name set via configuration. Can also be overriden via environment, but this setting has presendence.") ) .subcommand(App::new("db") .about("Database CLI interface") .subcommand(App::new("cli") .about("Start a database CLI, if installed on the current host") .long_about(indoc::indoc!(r#" Starts a database shell on the configured database using one of the following programs: - psql - pgcli if installed. "#)) .arg(Arg::new("tool") .required(false) .multiple(false) .long("tool") .value_name("TOOL") .possible_values(&["psql", "pgcli"]) .about("Use a specific tool") ) ) .subcommand(App::new("artifacts") .about("List artifacts from the DB") .arg(Arg::new("csv") .required(false) .multiple(false) .long("csv") .takes_value(
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __S3C_PCM_H
#define __S3C_PCM_H __FILE__
#define S3C_PCM_CLKSRC_PCLK 0
#define S3C_PCM_CLKSRC_MUX 1
#define S3C_PCM_SCLK_PER_FS 0
#endif /* __S3C_PCM_H */