Skip to content

Commit 0e89277

Browse files
authored
feat: replace gluegun to @discloudapp/gluegun (#120)
* feat: replace `gluegun` to `@discloudapp/gluegun` * Bump `@discloudapp/gluegun`
1 parent eb23e66 commit 0e89277

41 files changed

Lines changed: 104 additions & 104 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"homepage": "https://github.com/discloud/cli#readme",
2424
"dependencies": {
2525
"@discloudapp/api-types": "^0.2.5",
26+
"@discloudapp/gluegun": "^5.1.3",
2627
"archiver": "^5.3.1",
2728
"form-data": "^4.0.0",
28-
"glob": "^8.1.0",
29-
"gluegun": "^5.1.2"
29+
"glob": "^8.1.0"
3030
},
3131
"devDependencies": {
3232
"@types/archiver": "^5.3.1",

src/@types/Gluegun.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ApiApp, ApiTeamApps } from "@discloudapp/api-types/v2";
2-
import { ApiResponse } from "gluegun";
2+
import { ApiResponse } from "@discloudapp/gluegun";
33
import { Ora } from "ora";
44
import { ApiResPrinterOptions, AskForAppsOptions, FetchAndAskForAppsOptions } from ".";
55

6-
declare module "gluegun" {
6+
declare module "@discloudapp/gluegun" {
77
interface GluegunPrint {
88
debug: Console["debug"]
99
printApiRes<T>(apiRes: ApiResponse<T>, options?: ApiResPrinterOptions, spin?: Ora): number

src/commands/app-apt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { APT, APTPackages, RESTPutApiAppAptResult, Routes } from "@discloudapp/api-types/v2";
2-
import { GluegunCommand, GluegunToolbox } from "gluegun";
2+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
33
import { apidiscloud, aptValidator, config, RateLimit } from "../util";
44

55
export default new class AppApt implements GluegunCommand {

src/commands/apps-team.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RESTGetApiAppTeamResult, RESTPostApiAppTeamResult, Routes } from "@discloudapp/api-types/v2";
2-
import { GluegunCommand, GluegunToolbox } from "gluegun";
2+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
33
import { apidiscloud, config, makeTable, RateLimit } from "../util";
44
import { ModPermissions } from "../util/constants";
55

src/commands/apps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RESTGetApiAppAllResult, RESTGetApiAppResult, Routes } from "@discloudapp/api-types/v2";
2-
import { GluegunCommand, GluegunToolbox } from "gluegun";
2+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
33
import { apidiscloud, config, makeTable, RateLimit } from "../util";
44

55
export default new class Apps implements GluegunCommand {

src/commands/backups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RESTGetApiAppAllBackupResult, RESTGetApiAppBackupResult, Routes } from "@discloudapp/api-types/v2";
22
import axios from "axios";
3-
import { GluegunCommand, GluegunToolbox } from "gluegun";
3+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
44
import { apidiscloud, config, makeTable, RateLimit } from "../util";
55
import { backupsPath } from "../util/constants";
66

src/commands/commit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RESTPutApiAppCommitResult, Routes } from "@discloudapp/api-types/v2";
22
import FormData from "form-data";
3-
import { GluegunCommand, GluegunToolbox } from "gluegun";
3+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
44
import { apidiscloud, arrayOfPathlikeProcessor, config, DiscloudConfig, makeZipFromFileList, RateLimit } from "../util";
55

66
export default new class Commit implements GluegunCommand {

src/commands/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RESTDeleteApiAppAllDeleteResult, Routes } from "@discloudapp/api-types/v2";
2-
import { GluegunCommand, GluegunToolbox } from "gluegun";
2+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
33
import { apidiscloud, config, makeTable, RateLimit } from "../util";
44

55
export default new class Delete implements GluegunCommand {

src/commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AppLanguages, APT } from "@discloudapp/api-types/v2";
2-
import { GluegunCommand, GluegunToolbox } from "gluegun";
2+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
33
import { app_version } from "../util/constants";
44

55
export default new class Init implements GluegunCommand {

src/commands/locale.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RESTPutApiLocaleResult, Routes } from "@discloudapp/api-types/v2";
2-
import { GluegunCommand, GluegunToolbox } from "gluegun";
2+
import { GluegunCommand, GluegunToolbox } from "@discloudapp/gluegun";
33
import { apidiscloud, config, RateLimit } from "../util";
44
import { locales } from "../util/constants";
55

0 commit comments

Comments
 (0)