diff --git a/content/en/Formulas/Rename formulas.md b/content/en/Formulas/Rename formulas.md deleted file mode 100644 index ea3bf514..00000000 --- a/content/en/Formulas/Rename formulas.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Rename formulas -weight: 45 -description: In this section, you will find how to rename a formula in Ritchie. ---- - ---- - -## **How to rename a formula?** - -### **Premisses** - -{{% alert color="warning" %}} - -Only local formulas can be renamed. - -{{% /alert %}} - -## **Renaming your formula** - -You can use the core command **`rit rename formula`** to rename a local formula. The required input parameters are: - -1. The name of the old formula; -2. The new formula name; -3. The workspace name. - -- **Example:** `rit group old` > `rit group new` > `Default` - -![](/shared/rit-rename-formula.gif) - -{{% alert color="info" %}} - -- Ritchie will automatically identify the workspace to which the formula belongs to. -- If the CLI identify more than one workspace with the entered formula, an extra step (_when using prompt execution_) will be necessary to identify in which workspace the formula should have its name changed. -- This formula includes entry via _flag_. - -For more information, check out the [**Formula commands**]({{< ref path="/Standard Inputs/Formulas commands" >}}) section. - - {{% /alert %}} - -## **Effects** - -1. All files that identify the formula will be changed to the new formula name. _These changes reflect both in Ritchie's internal control folders and in the workspace folder (whether it is the default or custom)_. - -2. Ritchie's autocompleted will only identify the new formula name. - -## **Next steps** -Keep configuring your formula: - -馃憠 Check out [**how to share formulas**]({{< ref path="/Formulas/Share formulas.md" >}}). diff --git a/content/en/Reference/List of commands and flags.md b/content/en/Reference/List of commands and flags.md index c2e356a9..c265a4bd 100644 --- a/content/en/Reference/List of commands and flags.md +++ b/content/en/Reference/List of commands and flags.md @@ -34,7 +34,6 @@ description: In this section, you will find the list of Ritchie's main commands | rit create formula | create a new formula from scratch (as well as a new local repository if necessary) | | rit build formula | build a formula locally for test | | rit build formula --watch | build a formula monitoring the code to update real time changes | -| rit rename formula | rename a local formula | | rit list formula | list all available formulas from specific/all repositories | @@ -63,10 +62,11 @@ The rit build formula command was deprecated from Ritchie's version 2.5.0. ### **Credential commands** -| Commands | Operation | -| :------------------ | :----------------------------------- | -| rit set credential | set new credentials for the context | -| rit list credential | list all credential names and fields | +| Commands | Operation | +| :-------------------- | :----------------------------------- | +| rit set credential | set new credentials for the context | +| rit list credential | list all credential names and fields | +| rit delete credential | delete a credential | ### **Workspace commands** @@ -81,8 +81,8 @@ The rit build formula command was deprecated from Ritchie's version 2.5.0. ### **Main flags** -| Flags | Operation | -| :-------- | :--------------------------------------------------------------------- | +| Flags | Operation | +| :-------- | :---------------------------------------------------------------------- | | -\-default | attribute the **default** values configured on the formula. | | -\-docker | run a formula using **Docker** | | -\-help | returns a list of executable available commands and flags for the user | diff --git a/content/en/Standard inputs/Core commands.md b/content/en/Standard inputs/Core commands.md index 662a7051..e220e67f 100644 --- a/content/en/Standard inputs/Core commands.md +++ b/content/en/Standard inputs/Core commands.md @@ -17,22 +17,6 @@ This flags are supported since Ritchie's 2.8 release. ### **Available flags** -### **Init command** - -rit init - -```text -rit init --sendMetrics="yes" --addCommons="yes" --runType="local" -``` - -### **Create formula command** - -rit create formula - -```text -rit create formula --name="rit group verb noun" --language="go" --workspace="Default" -``` - ### **Credentials command** rit set credential @@ -63,12 +47,6 @@ rit delete env --env="prod" ### **Formula commands** -rit set formula-runner - -```text -rit set formula-runner --runner="local" -``` - rit list formula ```text @@ -85,24 +63,6 @@ If you need to list formulas from every repository you have added, use the flag rit list formula --name="ALL" ``` -rit rename formula - -```text -rit rename formula --oldName="rit group old" --newName="rit group new" --workspace="workspace_name" -``` - -{{% alert color="info" %}} - -The workspace flag is required when the formula is found in more than one workspace. - -{{% /alert %}} - -rit delete formula - -```text -rit delete formula --workspace="workspace_name" --formula="rit group verb noun" -``` - ### **Repo commands** rit add repo @@ -123,37 +83,3 @@ rit delete repo ```text rit delete repo --name="repo_name" ``` - -rit update repo - -```text -rit update repo --name="commons" --version="2.0.0" -``` - -### **Tutorial command** - -rit tutorial - -```text -rit tutorial --enabled=true -``` - -### **Workspace commands** - -rit add workspace - -```text -rit add workspace --name="workspace_name" --path="path/to/workspace" -``` - -rit delete workspace - -```text -rit delete workspace --name="workspace_name" -``` - -rit update workspace - -```text -rit update workspace --name="workspace_name" -``` diff --git "a/content/pt-br/F\303\263rmulas/Renomear F\303\263rmulas.md" "b/content/pt-br/F\303\263rmulas/Renomear F\303\263rmulas.md" deleted file mode 100644 index bad22006..00000000 --- "a/content/pt-br/F\303\263rmulas/Renomear F\303\263rmulas.md" +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Renomear f贸rmulas -weight: 45 -description: Nesta se莽茫o, voc锚 vai encontrar informa莽玫es como renomear uma f贸rmula no Ritchie. ---- - ---- - -## **Como renomear uma f贸rmula?** - -### **Premissas** - -{{% alert color="warning" %}} - -Somente f贸rmulas locais podem ser renomeadas. - -{{% /alert %}} - -## **Renomeando sua f贸rmula** - -Voc锚 pode usar o comando core do Ritchie **`rit rename formula`** para renomear uma f贸rmula local. Os par芒metros de entrada necess谩rios s茫o: - -1. O nome da f贸rmula antiga; -2. O novo nome da f贸rmula; -3. O nome do workspace. - -- **Exemplo:** `rit group old` > `rit group new` > `Default` - -![](/shared/rit-rename-formula.gif) - -{{% alert color="info" %}} - -- O Ritchie identifica automaticamente o workspace que a f贸rmula pertence. -- Se o CLI identificar mais de um workspace com a f贸rmula informada, um passo extra necess谩rio (_quando for usada a execu莽茫o via prompt_) ser谩 pedido pelo Ritchie, para escolher o workspace que deve ter a f贸rmula renomeada. -- Essa f贸rmula possui entrada via _flags_. - -Para mais informa莽玫es, veja a se莽茫o [**Comandos de f贸rmula**]({{< ref path="/Standard Inputs/Comandos de f贸rmulas.md" >}}). -. - {{% /alert %}} - -## **Efeitos** - -1. Todos os arquivos que identificam a f贸rmula ser茫o alterados para o novo nome da f贸rmula. _Essas altera莽玫es refletir茫o tanto nas pastas internas de controle do Ritchie, quanto na pasta do workspace (sendo ele o default ou personalizado)_. - -2. O autocomplete do Ritchie identificar谩 somente o novo nome de f贸rmula. - -## **Pr贸ximos passos** -Continue configurando a sua f贸rmula: - -馃憠 Veja a se莽茫o [**como compartilhar f贸rmulas**]({{< ref path="/F贸rmulas/Compartilhar f贸rmulas.md" >}}). diff --git "a/content/pt-br/Refer\303\252ncia/Lista de comandos e flags.md" "b/content/pt-br/Refer\303\252ncia/Lista de comandos e flags.md" index 1038132d..9bcde8db 100644 --- "a/content/pt-br/Refer\303\252ncia/Lista de comandos e flags.md" +++ "b/content/pt-br/Refer\303\252ncia/Lista de comandos e flags.md" @@ -29,13 +29,11 @@ description: "Nesta se莽茫o, voc锚 vai encontrar uma lista com principais comand ### **Comandos de F贸rmulas** - | Command | Operation | | :-------------------------- | :-------------------------------------------------------------------------------------- | | rit create formula | cria uma nova f贸rmula do zero (como tamb茅m um novo reposit贸rio local, se necess谩rio) | | rit build formula | compila uma f贸rmula localmente para teste | | rit build formula --watch | compila uma f贸rmula para teste, monitorando atualiza莽玫es do c贸digo no tempo real | -| rit rename formula | renomeia uma f贸rmula local | | rit list formula | lista todas as f贸rmulas dispon铆veis em um/todos reposit贸rios | {{% alert color="danger" %}} @@ -76,7 +74,6 @@ O comando rit build formula foi depreciado a partir da vers茫o 2.5.0 do Ritchie. | rit list workspace | lista todas as f贸rmulas do workspace | | rit add workspace | adiciona um novo workspace | | rit delete workspace | apaga um workspace | -| rit update workspace | atualiza um workspace (para acessar novas f贸rmulas desse workspace com o Ritchie) | ## **Flags** diff --git a/content/pt-br/Standard inputs/Comandos core.md b/content/pt-br/Standard inputs/Comandos core.md index 0f5564aa..2f2f80e7 100644 --- a/content/pt-br/Standard inputs/Comandos core.md +++ b/content/pt-br/Standard inputs/Comandos core.md @@ -17,22 +17,6 @@ Estas flags est茫o dispon铆veis a partir da vers茫o 2.8 do Ritchie. ### **Flags dispon铆veis** -### **Comando de inicializa莽茫o do Ritchie** - -rit init - -```text -rit init --sendMetrics="yes" --addCommons="yes" --runType="local" -``` - -### **Comando para criar f贸rmula** - -rit create formula - -```text -rit create formula --name="rit group verb noun" --language="go" --workspace="Default" -``` - ### **Comandos de credenciais** rit set credential @@ -63,12 +47,6 @@ rit delete env --env="prod" ### **Comandos de F贸rmulas** -rit set formula-runner - -```text -rit set formula-runner --runner="local" -``` - rit list formula ```text @@ -85,25 +63,6 @@ Se voc锚 precisar listar as f贸rmulas de todos os reposit贸rios adicionados, use rit list formula --name="ALL" ``` -rit rename formula - -```text -rit rename formula --oldName="rit group old" --newName="rit group new" --workspace="workspace_name" -``` - - -{{% alert color="info" %}} - -A flag de workspace 茅 obrigat贸ria quando a f贸rmula 茅 encontrada em mais de um workspace. - -{{% /alert %}} - -rit delete formula - -```text -rit delete formula --workspace="workspace_name" --formula="rit group verb noun" -``` - ### **Comandos de Repo** rit add repo @@ -124,37 +83,3 @@ rit delete repo ```text rit delete repo --name="repo_name" ``` - -rit update repo - -```text -rit update repo --name="commons" --version="2.0.0" -``` - -### **Comando de Tutorial** - -rit tutorial - -```text -rit tutorial --enabled=true -``` - -### **Comandos de workspace** - -rit add workspace - -```text -rit add workspace --name="workspace_name" --path="path/to/workspace" -``` - -rit delete workspace - -```text -rit delete workspace --name="workspace_name" -``` - -rit update workspace - -```text -rit update workspace --name="workspace_name" -```