refactor(cli): rename tooling/cli.rs folder to tooling/cli (#3388)

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
Lucas Fernandes Nogueira
2022-02-10 17:23:10 -03:00
committed by GitHub
parent 62c7a8ad30
commit 4334865266
209 changed files with 268 additions and 216 deletions

View File

@@ -1,18 +1,21 @@
#!/usr/bin/env node
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
/*
This script is solely intended to be run as part of the `covector version` step to
keep the `../tooling/cli.rs/metadata.json` up to date with other version bumps. Long term
keep the `../tooling/cli/metadata.json` up to date with other version bumps. Long term
we should look to find a more "rusty way" to import / "pin" a version value in our cli.rs
rust binaries.
*/
const { readFileSync, writeFileSync } = require('fs')
const {
readFileSync,
writeFileSync
} = require('fs')
const filePath = `../../tooling/cli.rs/metadata.json`
const filePath = `../../tooling/cli/metadata.json`
const packageNickname = process.argv[2]
const bump = process.argv[3]
if (bump !== 'prerelease' && bump !== 'prepatch') {

View File

@@ -9,7 +9,7 @@ yarn; yarn build
cd ..\..
echo "Installing the Tauri Rust CLI..."
cd tooling\cli.rs
cd tooling\cli
cargo install --path .
cd ..\..
echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
@@ -21,7 +21,7 @@ $options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
$result = $host.ui.PromptForChoice("Node.js CLI", "Do you want to install the Node.js CLI?", $options, 1)
switch ($result) {
0{
cd tooling\cli.rs/node
cd tooling\cli\node
yarn; yarn build; yarn link
cd ..\..
echo "Tauri Node.js CLI installed. use `yarn link @tauri-apps/cli` and run it with '$ yarn tauri [COMMAND]'."

View File

@@ -9,7 +9,7 @@ yarn && yarn build
cd ../..
echo "Building the Tauri Rust CLI..."
cd tooling/cli.rs
cd tooling/cli
cargo install --path .
cd ../..
echo "Tauri Rust CLI installed. Run it with '$ cargo tauri [COMMAND]'."
@@ -18,7 +18,7 @@ echo "Do you want to install the Node.js CLI?"
select yn in "Yes" "No"; do
case $yn in
Yes )
cd tooling/cli.rs/node
cd tooling/cli/node
yarn && yarn build && yarn link
cd ../../..
echo "Tauri Node.js CLI installed. use `yarn link @tauri-apps/cli` and run it with '$ yarn tauri [COMMAND]'."

View File

@@ -4,7 +4,7 @@
# SPDX-License-Identifier: MIT
declare -a examples=("api" "sidecar" "updater" "resources")
declare -a tooling=("bench" "cli.rs" "webdriver")
declare -a tooling=("bench" "cli" "webdriver")
for example in "${examples[@]}"
do