/
githubmirror
/
tauri
Обзор
Документация
Войти
/
githubmirror
/
tauri
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
crates/tauri-cli/src/acl/capability/mod.rs
28 строк
574 B
Amr Bashir
Restructure the repository (#10796)
28 авг 2024, 00:42
Не верифицирован
28 авг 2024, 00:42
36eee37
Код
Авторство
О чём код?
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use clap::{Parser, Subcommand}; use crate::Result; mod new; #[derive(Debug, Parser)] #[clap(about = "Manage or create capabilities for your app")] pub struct Cli { #[clap(subcommand)] command: Commands, } #[derive(Subcommand, Debug)] enum Commands { #[clap(alias = "create")] New(new::Options), } pub fn command(cli: Cli) -> Result<()> { match cli.command { Commands::New(options) => new::command(options), } }