Skip to content

Commit

Permalink
fix issue with .fluentci configs detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jan 25, 2024
1 parent 495873e commit d9e4ad4
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/cmd/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ async function generateAWSCodePipelineConfig(
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function generateAzurePipelinesConfig(pipeline?: string, reload = false) {
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function cache(pipeline?: string, lockWrite?: boolean) {
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/circleci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ async function generateCircleCIConfig(pipeline?: string, reload = false) {
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async function docs(
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ async function generateWorkflow(pipeline?: string, reload = false) {
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/gitlab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function generateGitlabCIConfig(pipeline?: string, reload = false) {
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function listJobs(pipeline = ".") {
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
1 change: 1 addition & 0 deletions src/cmd/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ async function run(
try {
// verify if .fluentci directory exists
const fluentciDir = await Deno.stat(".fluentci");
Deno.stat(".fluentci/mod.ts");
if (!fluentciDir.isDirectory) {
displayErrorMessage();
}
Expand Down
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dir } from "../deps.ts";

export const VERSION = "0.11.3";
export const VERSION = "0.11.4";

export const BASE_URL = "https://api.fluentci.io/v1";

Expand Down
36 changes: 18 additions & 18 deletions src/prelude.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import run from "https://deno.land/x/fluentci@v0.11.3/src/cmd/run.ts";
import init from "https://deno.land/x/fluentci@v0.11.3/src/cmd/init.ts";
import search from "https://deno.land/x/fluentci@v0.11.3/src/cmd/search.ts";
import run from "https://deno.land/x/fluentci@v0.11.4/src/cmd/run.ts";
import init from "https://deno.land/x/fluentci@v0.11.4/src/cmd/init.ts";
import search from "https://deno.land/x/fluentci@v0.11.4/src/cmd/search.ts";
import upgrade, {
checkForUpdate,
} from "https://deno.land/x/fluentci@v0.11.3/src/cmd/upgrade.ts";
import listJobs from "https://deno.land/x/fluentci@v0.11.3/src/cmd/list.ts";
import generateWorkflow from "https://deno.land/x/fluentci@v0.11.3/src/cmd/github.ts";
import generateGitlabCIConfig from "https://deno.land/x/fluentci@v0.11.3/src/cmd/gitlab.ts";
import generateAWSCodePipelineConfig from "https://deno.land/x/fluentci@v0.11.3/src/cmd/aws.ts";
import generateAzurePipelinesConfig from "https://deno.land/x/fluentci@v0.11.3/src/cmd/azure.ts";
import generateCircleCIConfig from "https://deno.land/x/fluentci@v0.11.3/src/cmd/circleci.ts";
import docs from "https://deno.land/x/fluentci@v0.11.3/src/cmd/docs.ts";
import cache from "https://deno.land/x/fluentci@v0.11.3/src/cmd/cache.ts";
import doctor from "https://deno.land/x/fluentci@v0.11.3/src/cmd/doctor.ts";
import showEnvs from "https://deno.land/x/fluentci@v0.11.3/src/cmd/env.ts";
import login from "https://deno.land/x/fluentci@v0.11.3/src/cmd/login.ts";
import publish from "https://deno.land/x/fluentci@v0.11.3/src/cmd/publish.ts";
} from "https://deno.land/x/fluentci@v0.11.4/src/cmd/upgrade.ts";
import listJobs from "https://deno.land/x/fluentci@v0.11.4/src/cmd/list.ts";
import generateWorkflow from "https://deno.land/x/fluentci@v0.11.4/src/cmd/github.ts";
import generateGitlabCIConfig from "https://deno.land/x/fluentci@v0.11.4/src/cmd/gitlab.ts";
import generateAWSCodePipelineConfig from "https://deno.land/x/fluentci@v0.11.4/src/cmd/aws.ts";
import generateAzurePipelinesConfig from "https://deno.land/x/fluentci@v0.11.4/src/cmd/azure.ts";
import generateCircleCIConfig from "https://deno.land/x/fluentci@v0.11.4/src/cmd/circleci.ts";
import docs from "https://deno.land/x/fluentci@v0.11.4/src/cmd/docs.ts";
import cache from "https://deno.land/x/fluentci@v0.11.4/src/cmd/cache.ts";
import doctor from "https://deno.land/x/fluentci@v0.11.4/src/cmd/doctor.ts";
import showEnvs from "https://deno.land/x/fluentci@v0.11.4/src/cmd/env.ts";
import login from "https://deno.land/x/fluentci@v0.11.4/src/cmd/login.ts";
import publish from "https://deno.land/x/fluentci@v0.11.4/src/cmd/publish.ts";
import startAgent, {
listAgents,
} from "https://deno.land/x/fluentci@v0.11.3/src/cmd/agent.ts";
import whoami from "https://deno.land/x/fluentci@v0.11.3/src/cmd/whoami.ts";
} from "https://deno.land/x/fluentci@v0.11.4/src/cmd/agent.ts";
import whoami from "https://deno.land/x/fluentci@v0.11.4/src/cmd/whoami.ts";
import { Client } from "https://esm.sh/@dagger.io/dagger@0.9.6";
import { GraphQLClient } from "https://esm.sh/graphql-request@6.1.0";

Expand Down

0 comments on commit d9e4ad4

Please sign in to comment.