@maka/maka-cli 4.7.11 → 4.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +29 -29
- package/.mocharc.json +3 -3
- package/.vs/VSWorkspaceState.json +12 -0
- package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/69d2de39-b193-48d9-b520-96bdb73b7b61.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
- package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
- package/.vs/maka-cli-src/v17/.wsuo +0 -0
- package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
- package/.vs/slnx.sqlite +0 -0
- package/README.md +21 -21
- package/bundle/obf/package.json +127 -127
- package/bundle/obf/src/README.md +21 -21
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +11 -11
- package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
- package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
- package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
- package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
- package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
- package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
- package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
- package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
- package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
- package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
- package/bundle/obf/src/templates/meteor/config/process.env +5 -5
- package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
- package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
- package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
- package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
- package/bundle/obf/src/templates/meteor/method/method.js +48 -48
- package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
- package/bundle/obf/src/templates/meteor/package/package.js +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
- package/bundle/obf/src/templates/meteor/project/README.md +1 -1
- package/bundle/obf/src/templates/meteor/project/build/README +4 -4
- package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
- package/bundle/obf/src/templates/meteor/project/package.json +20 -20
- package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
- package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template.css +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
- package/bundle/obf/src/templates/meteor/template/template.html +5 -5
- package/bundle/obf/src/templates/meteor/template/template.js +20 -20
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
- package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
- package/bundle/obf/src/templates/react/component/component.css +6 -6
- package/bundle/obf/src/templates/react/component/component.css.less +6 -6
- package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
- package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
- package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
- package/bundle/obf/src/templates/react/hook/hook.css +3 -3
- package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
- package/bundle/obf/src/templates/react/hook/hook.js +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
- package/bundle/obf/src/templates/react/route/route.js +8 -8
- package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
- package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
- package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
- package/bundle/obf/src/templates/react/test/test.js +1 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
- package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
- package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
- package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
- package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/jest.config.js +11 -11
- package/obfuscator.json +29 -29
- package/package.json +127 -127
- package/tsconfig.json +23 -23
|
Binary file
|
|
Binary file
|
package/.vs/slnx.sqlite
ADDED
|
Binary file
|
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
## About
|
|
6
|
-
Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
|
|
7
|
-
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
8
|
-
NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
9
|
-
|
|
10
|
-
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
|
-
|
|
12
|
-
## Installation
|
|
13
|
-
```
|
|
14
|
-
npm i -g @maka/maka-cli
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Getting Started
|
|
18
|
-
|
|
19
|
-
Documentation has moved over to:
|
|
20
|
-
|
|
21
|
-
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
|
|
7
|
+
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
8
|
+
NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
9
|
+
|
|
10
|
+
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
```
|
|
14
|
+
npm i -g @maka/maka-cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
Documentation has moved over to:
|
|
20
|
+
|
|
21
|
+
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
package/bundle/obf/package.json
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@maka/maka-cli",
|
|
3
|
-
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
-
"version": "4.7.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
|
-
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
8
|
-
"homepage": "https://github.com/maka-io/maka-cli",
|
|
9
|
-
"main": "./bundle/typescript/src/maka.js",
|
|
10
|
-
"files": "",
|
|
11
|
-
"bin": {
|
|
12
|
-
"maka": "./bundle/obf/src/exec.js"
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git://github.com/maka-io/maka-cli.git"
|
|
17
|
-
},
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/maka-io/maka-cli/issues",
|
|
20
|
-
"email": "mjmcee@gmail.com"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"lint": "eslint src/ --fix",
|
|
24
|
-
"maka": "./typescript/src/maka.js",
|
|
25
|
-
"test": "jest",
|
|
26
|
-
"develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/exec.js && chmod +x ./bundle/typescript/src/exec.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
|
|
27
|
-
"build": "npm run lint && rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
|
|
28
|
-
"obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
|
|
29
|
-
"prep": " cp -R ./src/templates ./bundle/obf/src/ && cp ./README.md ./bundle/obf/src/ && cp ./package.json ./bundle/obf/ && chmod +x ./bundle/obf/src/exec.js",
|
|
30
|
-
"//": "## es-build, and package are still experimental",
|
|
31
|
-
"es-build": "esbuild ./bundle/typescript/src/maka.js --bundle --platform=node --outfile=bundle/maka.cjs",
|
|
32
|
-
"package": "pkg ./bundle/maka.cjs -d --bundle --out-path=\"bundle/compiled\" --compress GZip",
|
|
33
|
-
"distribute": "mkdir -p compiled/macos compiled/linux compiled/win && mv bundle/compiled/maka-linux compiled/linux/maka && mv bundle/compiled/maka-macos compiled/macos/maka && mv bundle/compiled/maka-win.exe compiled/win/maka.exe",
|
|
34
|
-
"prepare": "husky install"
|
|
35
|
-
},
|
|
36
|
-
"author": "Matthew Campbell <mjmcee@gmail.com>",
|
|
37
|
-
"license": "LICENSED",
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@aws-sdk/client-ec2": "^3.414.0",
|
|
40
|
-
"@aws-sdk/client-ecr": "^3.414.0",
|
|
41
|
-
"@aws-sdk/client-route-53": "^3.414.0",
|
|
42
|
-
"@aws-sdk/client-route-53-domains": "^3.414.0",
|
|
43
|
-
"blessed": "^0.1.81",
|
|
44
|
-
"change-case": "^4.1.2",
|
|
45
|
-
"cli-color": "^2.0.3",
|
|
46
|
-
"cli-cursor": "^4.0.0",
|
|
47
|
-
"cli-table": "^0.3.11",
|
|
48
|
-
"delete": "^1.1.0",
|
|
49
|
-
"dotenv": "^16.3.1",
|
|
50
|
-
"ejs": "^3.1.9",
|
|
51
|
-
"elegant-spinner": "^3.0.0",
|
|
52
|
-
"eslint": "^8.49.0",
|
|
53
|
-
"http-proxy": "^1.18.1",
|
|
54
|
-
"humps": "^2.0.1",
|
|
55
|
-
"inquirer": "^9.2.11",
|
|
56
|
-
"jsonwebtoken": "^9.0.2",
|
|
57
|
-
"latest-version": "^7.0.0",
|
|
58
|
-
"minimist": "^1.2.8",
|
|
59
|
-
"node-forge": "^1.3.1",
|
|
60
|
-
"open": "^9.1.0",
|
|
61
|
-
"rimraf": "^5.0.1",
|
|
62
|
-
"semver": "^7.5.4",
|
|
63
|
-
"single-line-log2": "^1.1.3",
|
|
64
|
-
"slash": "^5.1.0",
|
|
65
|
-
"spawn-args": "0.2.0",
|
|
66
|
-
"tar": "^6.2.0",
|
|
67
|
-
"uuid": "^9.0.1",
|
|
68
|
-
"xtend": "^4.0.2"
|
|
69
|
-
},
|
|
70
|
-
"devDependencies": {
|
|
71
|
-
"@aws-sdk/types": "^3.413.0",
|
|
72
|
-
"@types/blessed": "^0.1.23",
|
|
73
|
-
"@types/chai": "^4.3.6",
|
|
74
|
-
"@types/change-case": "^2.3.1",
|
|
75
|
-
"@types/cli-color": "^2.0.3",
|
|
76
|
-
"@types/cli-table": "^0.3.2",
|
|
77
|
-
"@types/ejs": "^3.1.2",
|
|
78
|
-
"@types/eslint": "^8.44.2",
|
|
79
|
-
"@types/fibers": "^3.1.2",
|
|
80
|
-
"@types/http-proxy": "^1.17.12",
|
|
81
|
-
"@types/humps": "^2.0.4",
|
|
82
|
-
"@types/inquirer": "^9.0.3",
|
|
83
|
-
"@types/jest": "^29.5.5",
|
|
84
|
-
"@types/jsonwebtoken": "^9.0.3",
|
|
85
|
-
"@types/meteor": "^2.9.4",
|
|
86
|
-
"@types/minimist": "^1.2.2",
|
|
87
|
-
"@types/node": "^20.6.2",
|
|
88
|
-
"@types/react": "^18.2.21",
|
|
89
|
-
"@types/react-dom": "^18.2.7",
|
|
90
|
-
"@types/uuid": "^9.0.4",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
92
|
-
"@typescript-eslint/parser": "^6.7.0",
|
|
93
|
-
"aws-sdk": "^2.1459.0",
|
|
94
|
-
"chai": "^4.3.8",
|
|
95
|
-
"chdir": "^0.0.0",
|
|
96
|
-
"concat-stream": "^2.0.0",
|
|
97
|
-
"concurrently": "^8.2.1",
|
|
98
|
-
"esbuild": "^0.19.3",
|
|
99
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
100
|
-
"eslint-plugin-import": "^2.28.1",
|
|
101
|
-
"husky": "^8.0.3",
|
|
102
|
-
"javascript-obfuscator": "^4.1.0",
|
|
103
|
-
"jest": "^29.7.0",
|
|
104
|
-
"mkdirp": "^3.0.1",
|
|
105
|
-
"pkg": "^5.8.1",
|
|
106
|
-
"ts-jest": "^29.1.1",
|
|
107
|
-
"typescript": "^5.2.2",
|
|
108
|
-
"wait-on": "^7.0.1"
|
|
109
|
-
},
|
|
110
|
-
"pkg": {
|
|
111
|
-
"assets": [
|
|
112
|
-
"package.json",
|
|
113
|
-
".npmrc",
|
|
114
|
-
"bundle/typescript/src/commands",
|
|
115
|
-
"bundle/typescript/src/generators",
|
|
116
|
-
"bundle/typescript/src/templates",
|
|
117
|
-
"bundle/typescript/src/tools"
|
|
118
|
-
],
|
|
119
|
-
"scripts": [
|
|
120
|
-
"typescript/**/*.js",
|
|
121
|
-
"typescript/**/*.d.js"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
"engines": {
|
|
125
|
-
"node": ">=14.0.0"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@maka/maka-cli",
|
|
3
|
+
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
+
"version": "4.7.13",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
|
+
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
8
|
+
"homepage": "https://github.com/maka-io/maka-cli",
|
|
9
|
+
"main": "./bundle/typescript/src/maka.js",
|
|
10
|
+
"files": "",
|
|
11
|
+
"bin": {
|
|
12
|
+
"maka": "./bundle/obf/src/exec.js"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git://github.com/maka-io/maka-cli.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/maka-io/maka-cli/issues",
|
|
20
|
+
"email": "mjmcee@gmail.com"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"lint": "eslint src/ --fix",
|
|
24
|
+
"maka": "./typescript/src/maka.js",
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/exec.js && chmod +x ./bundle/typescript/src/exec.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
|
|
27
|
+
"build": "npm run lint && rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
|
|
28
|
+
"obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
|
|
29
|
+
"prep": " cp -R ./src/templates ./bundle/obf/src/ && cp ./README.md ./bundle/obf/src/ && cp ./package.json ./bundle/obf/ && chmod +x ./bundle/obf/src/exec.js",
|
|
30
|
+
"//": "## es-build, and package are still experimental",
|
|
31
|
+
"es-build": "esbuild ./bundle/typescript/src/maka.js --bundle --platform=node --outfile=bundle/maka.cjs",
|
|
32
|
+
"package": "pkg ./bundle/maka.cjs -d --bundle --out-path=\"bundle/compiled\" --compress GZip",
|
|
33
|
+
"distribute": "mkdir -p compiled/macos compiled/linux compiled/win && mv bundle/compiled/maka-linux compiled/linux/maka && mv bundle/compiled/maka-macos compiled/macos/maka && mv bundle/compiled/maka-win.exe compiled/win/maka.exe",
|
|
34
|
+
"prepare": "husky install"
|
|
35
|
+
},
|
|
36
|
+
"author": "Matthew Campbell <mjmcee@gmail.com>",
|
|
37
|
+
"license": "LICENSED",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@aws-sdk/client-ec2": "^3.414.0",
|
|
40
|
+
"@aws-sdk/client-ecr": "^3.414.0",
|
|
41
|
+
"@aws-sdk/client-route-53": "^3.414.0",
|
|
42
|
+
"@aws-sdk/client-route-53-domains": "^3.414.0",
|
|
43
|
+
"blessed": "^0.1.81",
|
|
44
|
+
"change-case": "^4.1.2",
|
|
45
|
+
"cli-color": "^2.0.3",
|
|
46
|
+
"cli-cursor": "^4.0.0",
|
|
47
|
+
"cli-table": "^0.3.11",
|
|
48
|
+
"delete": "^1.1.0",
|
|
49
|
+
"dotenv": "^16.3.1",
|
|
50
|
+
"ejs": "^3.1.9",
|
|
51
|
+
"elegant-spinner": "^3.0.0",
|
|
52
|
+
"eslint": "^8.49.0",
|
|
53
|
+
"http-proxy": "^1.18.1",
|
|
54
|
+
"humps": "^2.0.1",
|
|
55
|
+
"inquirer": "^9.2.11",
|
|
56
|
+
"jsonwebtoken": "^9.0.2",
|
|
57
|
+
"latest-version": "^7.0.0",
|
|
58
|
+
"minimist": "^1.2.8",
|
|
59
|
+
"node-forge": "^1.3.1",
|
|
60
|
+
"open": "^9.1.0",
|
|
61
|
+
"rimraf": "^5.0.1",
|
|
62
|
+
"semver": "^7.5.4",
|
|
63
|
+
"single-line-log2": "^1.1.3",
|
|
64
|
+
"slash": "^5.1.0",
|
|
65
|
+
"spawn-args": "0.2.0",
|
|
66
|
+
"tar": "^6.2.0",
|
|
67
|
+
"uuid": "^9.0.1",
|
|
68
|
+
"xtend": "^4.0.2"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@aws-sdk/types": "^3.413.0",
|
|
72
|
+
"@types/blessed": "^0.1.23",
|
|
73
|
+
"@types/chai": "^4.3.6",
|
|
74
|
+
"@types/change-case": "^2.3.1",
|
|
75
|
+
"@types/cli-color": "^2.0.3",
|
|
76
|
+
"@types/cli-table": "^0.3.2",
|
|
77
|
+
"@types/ejs": "^3.1.2",
|
|
78
|
+
"@types/eslint": "^8.44.2",
|
|
79
|
+
"@types/fibers": "^3.1.2",
|
|
80
|
+
"@types/http-proxy": "^1.17.12",
|
|
81
|
+
"@types/humps": "^2.0.4",
|
|
82
|
+
"@types/inquirer": "^9.0.3",
|
|
83
|
+
"@types/jest": "^29.5.5",
|
|
84
|
+
"@types/jsonwebtoken": "^9.0.3",
|
|
85
|
+
"@types/meteor": "^2.9.4",
|
|
86
|
+
"@types/minimist": "^1.2.2",
|
|
87
|
+
"@types/node": "^20.6.2",
|
|
88
|
+
"@types/react": "^18.2.21",
|
|
89
|
+
"@types/react-dom": "^18.2.7",
|
|
90
|
+
"@types/uuid": "^9.0.4",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
92
|
+
"@typescript-eslint/parser": "^6.7.0",
|
|
93
|
+
"aws-sdk": "^2.1459.0",
|
|
94
|
+
"chai": "^4.3.8",
|
|
95
|
+
"chdir": "^0.0.0",
|
|
96
|
+
"concat-stream": "^2.0.0",
|
|
97
|
+
"concurrently": "^8.2.1",
|
|
98
|
+
"esbuild": "^0.19.3",
|
|
99
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
100
|
+
"eslint-plugin-import": "^2.28.1",
|
|
101
|
+
"husky": "^8.0.3",
|
|
102
|
+
"javascript-obfuscator": "^4.1.0",
|
|
103
|
+
"jest": "^29.7.0",
|
|
104
|
+
"mkdirp": "^3.0.1",
|
|
105
|
+
"pkg": "^5.8.1",
|
|
106
|
+
"ts-jest": "^29.1.1",
|
|
107
|
+
"typescript": "^5.2.2",
|
|
108
|
+
"wait-on": "^7.0.1"
|
|
109
|
+
},
|
|
110
|
+
"pkg": {
|
|
111
|
+
"assets": [
|
|
112
|
+
"package.json",
|
|
113
|
+
".npmrc",
|
|
114
|
+
"bundle/typescript/src/commands",
|
|
115
|
+
"bundle/typescript/src/generators",
|
|
116
|
+
"bundle/typescript/src/templates",
|
|
117
|
+
"bundle/typescript/src/tools"
|
|
118
|
+
],
|
|
119
|
+
"scripts": [
|
|
120
|
+
"typescript/**/*.js",
|
|
121
|
+
"typescript/**/*.d.js"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"engines": {
|
|
125
|
+
"node": ">=14.0.0"
|
|
126
|
+
}
|
|
127
|
+
}
|
package/bundle/obf/src/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
## About
|
|
6
|
-
Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
|
|
7
|
-
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
8
|
-
NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
9
|
-
|
|
10
|
-
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
|
-
|
|
12
|
-
## Installation
|
|
13
|
-
```
|
|
14
|
-
npm i -g @maka/maka-cli
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Getting Started
|
|
18
|
-
|
|
19
|
-
Documentation has moved over to:
|
|
20
|
-
|
|
21
|
-
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://www.maka-cli.com/logo_scaffold@2x.png" alt="alt text" height="400">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
Maka-CLI is a command line tool, which organizes a web application's file structure and automates everyday package installation tasks for various application frameworks
|
|
7
|
+
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
8
|
+
NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
9
|
+
|
|
10
|
+
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
```
|
|
14
|
+
npm i -g @maka/maka-cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Getting Started
|
|
18
|
+
|
|
19
|
+
Documentation has moved over to:
|
|
20
|
+
|
|
21
|
+
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=-parseInt(m(0x127))/0x1*(parseInt(m(0x102))/0x2)+-parseInt(m(0xff))/0x3*(-parseInt(m(0x117))/0x4)+-parseInt(m(0xdc))/0x5*(-parseInt(m(0xf6))/0x6)+-parseInt(m(0x105))/0x7*(-parseInt(m(0xe4))/0x8)+-parseInt(m(0x10e))/0x9*(-parseInt(m(0x120))/0xa)+parseInt(m(0x112))/0xb*(parseInt(m(0xe6))/0xc)+-parseInt(m(0xd6))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xbc79b));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x124)]()[o(0xe5)]('(((.+)+)+)+$')[o(0x124)]()[o(0x11e)](a0a)['search'](o(0xf8));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd6;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0c(){const y=['Command\x20requires\x20a\x20name','maybeProxyCommandToMeteor','call','options','Too\x20many\x20arguments','validateMakaProject','light','assign','_commands','invoke','1629486AtWiof','processAndRunCommand','(((.+)+)+)+$','DARK','Please\x20run\x20\x22maka\x20install\x20meteor\x22','maxArgLength','help','maxOptsLength','Too\x20few\x20arguments','2187477LJEHPx','Name','split','2493182DAJANa','Command\x20','pallet','7sOSLxv','bind','match','Too\x20few\x20options','Alias','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','validateParams','addCommand','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','33417KNQQFY','exit','Too\x20many\x20options','slice','71731YfExwN','shortDesc','getGlobalConfig','Description','aliases','8diXTQD','generate','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','LIGHT','bright','notice','push','constructor','minArgLength','970LAqzTj','minOptsLength','function','number','toString','tableList','sort','1RuaiFc','30382131LxwMvn','addCommand\x20requires\x20a\x20Command\x20instance','length','join','run','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','10lkNjfZ','apply','_handler','fsi','error','create','Command\x20not\x20found','find','4318792WnyneA','search','2676JukkqJ','name','validateMakaSubscription','Command\x20requires\x20a\x20handler\x20function','play','keys'];a0c=function(){return y;};return a0c();}export class Command extends Tool{[a0p(0xef)];[a0p(0xf4)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x10d));if(!a[q(0xe7)])throw new Error(q(0xec));if(typeof b!=='function')throw new Error(q(0xe9));this[q(0xef)]=Object[q(0xf3)]({},a),this[q(0xe7)]=this[q(0xef)][q(0xe7)],this['_commands']=[],this[q(0xde)]=b[q(0x106)](this);}static[a0p(0xe1)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x122))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[r(0xef)]?.[r(0xe7)]}),c[r(0x10c)](d),d;}[a0p(0x10c)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xd7));this[s(0xf4)][s(0x11d)](a);}async[a0p(0xda)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0xdf)][t(0x114)](),d=c[t(0x104)]===t(0xf2)?ColorMode[t(0x11a)]:ColorMode[t(0xf9)];Log['setColorMode'](d),await this[t(0xe8)](this);}catch(f){Log['error'](f),process[t(0x10f)](0x0);}await this[t(0xf5)](a,b);}catch(g){process[t(0x10f)](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[u(0xef)][u(0xe7)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0xd8)]===0x0)&&this['_commands']['length']>=0x0,g=b[u(0xfc)]||b['h'];if(f&&g){if(this['_commands'][u(0xd8)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0xef)]['mustBeInMakaProject']){const h=this[u(0xf1)]();if(!h)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const i=this['validateMeteorInstall']();if(!i)throw new NoMeteorFoundError();}if(typeof this[u(0xef)][u(0x11f)]===u(0x123)){if(a[u(0xd8)]<this['options'][u(0x11f)]){Log[u(0xe0)](u(0xfe));throw new UsageError();}}if(typeof this[u(0xef)][u(0xfb)]==='number'){if(a['length']>=this[u(0xef)][u(0xfb)]){Log[u(0xe0)](u(0xf0));throw new UsageError();}}if(typeof this[u(0xef)]['minOptsLength']===u(0x123)){if(Object[u(0xeb)](b)[u(0xd8)]<this['options'][u(0x121)]){Log[u(0xe0)](u(0x108));throw new UsageError();}}if(typeof this[u(0xef)]['maxOptsLength']===u(0x123)){if(Object[u(0xeb)](b)[u(0xd8)]>=this[u(0xef)][u(0xfd)]){Log[u(0xe0)](u(0x110));throw new UsageError();}}}}b=await this[u(0x10b)](a,b,this[u(0xef)]),_prevCmd=a[0x0];}await this[u(0xde)][u(0xee)](this,a,b);}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[u(0x11c)]('Sub-Commands:'),this[u(0x125)](this[u(0xf4)]),Log['header'](u(0x10a));else{if(j instanceof MustBeInProjectError)Log[u(0xe0)](u(0xdb));else{if(j instanceof NoMeteorFoundError)Log[u(0xe0)](u(0x119)),Log[u(0x11c)](u(0xfa));else j instanceof NoMeteorAppFoundError&&Log[u(0xe0)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}process[u(0x10f)](0x1);}}[a0p(0x125)](a){const v=a0p,b=new a0e({});b[v(0x11d)]([v(0x100),v(0x109),v(0x115)]),a[v(0x126)]()['forEach'](c=>{const w=v;c[w(0xe7)]!=='murder'&&c[w(0xe7)]!==w(0xea)&&b[w(0x11d)]([c[w(0xe7)],c[w(0x116)](),c[w(0x113)]()]);}),Log[v(0x11b)](b['toString']());}async[a0p(0xf7)](a,b=[],c={}){const x=a0p;try{const d=a?.[x(0x101)](':');if(!d||d['length']===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]==='generate'||d[0x0]==='g'&&d[x(0xd8)]>0x1){const h=this['_commands'][x(0xe3)](j=>j[x(0x107)](x(0x118)));if(!h)throw x(0xe2);await this[x(0xe8)](h);const i=d[x(0x111)](0x1)[x(0xd9)](':');b['unshift'](i),await h[x(0xda)](b,c);return;}let f=this[x(0xf4)],g;for(const j of d){g=f[x(0xe3)](k=>k[x(0x107)](j));if(!g)try{await this['fsi'][x(0xed)]();}catch(k){throw x(0x103)+j+'\x20not\x20found';}g&&(await this[x(0xe8)](g),f=g[x(0xf4)]);}if(g)await g[x(0xda)](b,c);else throw x(0xe2);}catch(l){Log[x(0xe0)](l),process[x(0x10f)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a94c(){var i=['8744oduvNB','1143480VCDigd','apply','283599mURUZq','constructor','(((.+)+)+)+$','461749UEyFYi','2233hRxyyX','24HxQhPN','search','834855INAKfv','1231227zPSewG','353554MIRGnr','toString'];a94c=function(){return i;};return a94c();}(function(a,b){var f=a94d,c=a();while(!![]){try{var d=parseInt(f(0xd1))/0x1+-parseInt(f(0xd7))/0x2+parseInt(f(0xdc))/0x3*(-parseInt(f(0xd3))/0x4)+parseInt(f(0xd5))/0x5+parseInt(f(0xda))/0x6+parseInt(f(0xd2))/0x7*(parseInt(f(0xd9))/0x8)+-parseInt(f(0xd6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x461d5));var a94b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a94d;if(c){var e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){var h=a94d;return a94a[h(0xd8)]()[h(0xd4)](h(0xd0))[h(0xd8)]()[h(0xdd)](a94a)['search']('(((.+)+)+)+$');});a94a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';function a94d(a,b){var c=a94c();return a94d=function(d,e){d=d-0xd0;var f=c[d];return f;},a94d(a,b);}import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a1m=a1d;function a1c(){const o=['createInterface','ChatGPT\x20style\x20AI\x20interface','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','askGPT','exit','cacert','parse','notice','1311166eiRHKg','175314nDxnqf','110VfhjhZ','isFile','apply','2134116zLhSIb','cert','7hhniJc','search','data','toLowerCase','157293oYaulK','openai','Using\x20OpenAI\x20Key\x20','close','create','Using\x20CA\x20Cert\x20','bright','choices','3697908NREmcm','trim','fsi','question','message','error','GPT:\x20','30ItbsBf','log','5645280YoVuJb','6Wivwsp','You:\x20','openapikey','toString','stdin','text','(((.+)+)+)+$','5470201GZEQgu','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'];a1c=function(){return o;};return a1c();}(function(a,b){const h=a1d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1+-parseInt(h(0x19d))/0x2*(-parseInt(h(0x18c))/0x3)+-parseInt(h(0x182))/0x4+-parseInt(h(0x19f))/0x5*(-parseInt(h(0x19e))/0x6)+parseInt(h(0x1a4))/0x7*(parseInt(h(0x18b))/0x8)+-parseInt(h(0x1a2))/0x9*(parseInt(h(0x189))/0xa)+-parseInt(h(0x193))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xa6f15));const a1b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a1d;if(c){const e=c[i(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){const j=a1d;return a1a[j(0x18f)]()[j(0x177)](j(0x192))[j(0x18f)]()['constructor'](a1a)['search']('(((.+)+)+)+$');});a1a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a1e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a1d,c=a1e[k(0x195)]({'input':process[k(0x190)],'output':process['stdout']});c[k(0x185)](k(0x18d),async d=>{const l=k;if(d[l(0x179)]()===l(0x199)){c[l(0x17d)]();return;}try{const e=await HTTPS[l(0x198)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x19b)](e[l(0x178)]);if(f[l(0x187)])throw new Error(f[l(0x187)][l(0x186)]);Log[l(0x180)](l(0x188)+f?.[l(0x181)][0x0]?.[l(0x191)][l(0x183)]());}catch(g){Log[l(0x187)](g),process[l(0x199)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a1d(a,b){const c=a1c();return a1d=function(d,e){d=d-0x177;let f=c[d];return f;},a1d(a,b);}Command[a1m(0x17e)]({'name':'ai','description':a1m(0x196),'validOpts':[a1m(0x19a),a1m(0x18e)],'shortDesc':a1m(0x196),'isPro':!![]},async function(a,b){const n=a1m;try{let c='';b[n(0x19a)]&&(this[n(0x184)][n(0x1a0)](b['cacert'])?(c=b[n(0x19a)],Log[n(0x19c)](n(0x17f)+c)):Log[n(0x187)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x184)]['getGlobalConfig']();if(d[n(0x1a3)]){if(this[n(0x184)][n(0x1a0)](d[n(0x1a3)]))c=d[n(0x1a3)];else throw Log[n(0x187)](n(0x194)+c);}let f='';if(b[n(0x18e)])f=b[n(0x18e)],Log[n(0x19c)](n(0x17c)+f);else{if(d[n(0x17b)])f=d[n(0x17b)];else throw Log[n(0x187)](n(0x197));}console[n(0x18a)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x187)](g),process[n(0x199)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a15d,c=a();while(!![]){try{var d=-parseInt(f(0x1f3))/0x1*(-parseInt(f(0x1f4))/0x2)+-parseInt(f(0x1e9))/0x3+parseInt(f(0x1f2))/0x4+-parseInt(f(0x1ec))/0x5+-parseInt(f(0x1e8))/0x6*(-parseInt(f(0x1e7))/0x7)+-parseInt(f(0x1f1))/0x8+parseInt(f(0x1ed))/0x9*(parseInt(f(0x1eb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x9425a));var a15b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a15d;if(c){var e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){var h=a15d;return a15a['toString']()[h(0x1ee)](h(0x1ea))['toString']()[h(0x1ef)](a15a)[h(0x1ee)](h(0x1ea));});a15a();function a15c(){var i=['427TVYhci','932ICQlLV','21sqiYLR','646338uoQbty','348537vRdBDY','(((.+)+)+)+$','291350syMArJ','1441255ahktUK','144yEBsDx','search','constructor','apply','169632FCsYXv','176532GJBPVT'];a15c=function(){return i;};return a15c();}function a15d(a,b){var c=a15c();return a15d=function(d,e){d=d-0x1e7;var f=c[d];return f;},a15d(a,b);}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2i=a2d;(function(a,b){const f=a2d,c=a();while(!![]){try{const d=parseInt(f(0x1f0))/0x1+parseInt(f(0x1ee))/0x2+-parseInt(f(0x1f2))/0x3*(-parseInt(f(0x1f8))/0x4)+-parseInt(f(0x1f9))/0x5+parseInt(f(0x1ec))/0x6*(parseInt(f(0x1e8))/0x7)+parseInt(f(0x1f7))/0x8*(parseInt(f(0x1f5))/0x9)+parseInt(f(0x1e7))/0xa*(-parseInt(f(0x1eb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xc3f35));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a2d;if(c){const e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const h=a2d;return a2a['toString']()[h(0x1ed)](h(0x1e9))[h(0x1f6)]()[h(0x1f1)](a2a)[h(0x1ed)]('(((.+)+)+)+$');});function a2c(){const j=['constructor','4335717vfLPwD','apply','maka\x20aws:<sub-command>','642717wBhrkz','toString','8CzvMiA','4xBkAfN','2885190pMkqPb','11510LmMiMk','11202996GsnVRM','(((.+)+)+)+$','aws','34661KfEkPi','6EYLZRY','search','2213448uhBrsB','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','782648xGoIxz'];a2c=function(){return j;};return a2c();}a2a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':a2i(0x1ea),'usage':a2i(0x1f4),'validOpts':[],'isPro':!![],'shortDesc':a2i(0x1ef),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20'},async function(){throw UsageError;});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a2d(a,b);}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a3l=a3d;(function(a,b){const i=a3d,c=a();while(!![]){try{const d=parseInt(i(0xd9))/0x1*(-parseInt(i(0xef))/0x2)+parseInt(i(0xe0))/0x3*(parseInt(i(0xdc))/0x4)+parseInt(i(0xde))/0x5+parseInt(i(0xd6))/0x6+parseInt(i(0xdb))/0x7*(-parseInt(i(0xda))/0x8)+parseInt(i(0xe5))/0x9+parseInt(i(0xec))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x30c69));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a3d;if(c){const e=c[j(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const k=a3d;return a3a[k(0xee)]()[k(0xed)](k(0xeb))[k(0xee)]()['constructor'](a3a)['search']('(((.+)+)+)+$');});a3a();import a3e from'./aws.command.js';import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xd5;let f=c[d];return f;},a3d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a3c(){const n=['maka\x20aws:create-hosted-zone\x20--domain=example.com','591240CQAyuN','publicIp','maka\x20aws:chz\x20--domain=example.com','16155cVkAIx','344NkCwiF','20286ikhfYI','1708AVfzJp','route53CreateHostedZone','575660ttDMuX','linkEC2ToRoute53','3vPaFrR','maka\x20aws:create-hosted-zone','chooseInstance','domain','error','1750941JBzicq','Set\x20hosted\x20zone\x20to\x20an\x20instance?','create','chz','create-hosted-zone','apply','(((.+)+)+)+$','1580760sgiwji','search','toString','30GNSTjR','Instance\x20not\x20found'];a3c=function(){return n;};return a3c();}Command[a3l(0xe7)]({'name':a3l(0xe9),'aliases':[a3l(0xe8)],'usage':a3l(0xe1),'requiredOpts':[a3l(0xe3)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a3l(0xd5),a3l(0xd8)]},async function(a,b){const m=a3l;try{const c=b['domain'],d=new AWS();d[m(0xdd)](c);const f=await Actions['confirm'](m(0xe6));if(f){const g=await d[m(0xe2)]();if(g?.['id']){if(!g[m(0xd7)])throw Log[m(0xe4)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0xdf)](g['id'],g['publicIp'],c);}else throw m(0xf0);}}catch(h){h&&Log[m(0xe4)](h),process['exit'](0x0);}},a3e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x12d))/0x1+parseInt(ae(0x15a))/0x2+parseInt(ae(0x13f))/0x3+parseInt(ae(0x126))/0x4*(parseInt(ae(0x141))/0x5)+parseInt(ae(0x15d))/0x6*(-parseInt(ae(0x119))/0x7)+parseInt(ae(0x16b))/0x8*(-parseInt(ae(0x11b))/0x9)+-parseInt(ae(0x143))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xf3453));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x123)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x140)]()[ag(0x177)]('(((.+)+)+)+$')[ag(0x140)]()[ag(0x16a)](a6a)[ag(0x177)](ag(0x12f));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';function a6c(){const au=['User\x20Data:','create','maka\x20aws:create-instance','22,80,443','fsi','Create\x20new\x20AWS\x20instance','environment','apply','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Instace\x20Type:\x20','10228uFGdlb','Would\x20you\x20like\x20to\x20include\x20user\x20data?','getSecurityGroups','number','Desc','createFile','maka\x20aws:ci\x20--env\x20prod','333911lFJUTo','getTime','(((.+)+)+)+$','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Setting\x20the\x20key-pair\x20to:\x20','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','\x20AZONE:\x20','split','\x20SGID:\x20','success','sgId','ImageID:','chooseVPC','getAppConfigPath','created-by','ask','push','\x20DESCRIPTION:\x20','3437316TbdoYR','toString','3350WEIlXU','create-instance','4758210Bsgmja','Name','**\x20Available\x20Subnets\x20**','join','log','name','getMakaProjectConfig','Please\x20choose\x20a\x20key\x20to\x20use:\x20','forEach','date','string','EC2\x20Name:\x20[','Remove\x20the\x20keypair\x20','**\x20Available\x20AMIs\x20**','Setting\x20Subnet\x20ID\x20to\x20','ec2describeKeys','amazon','parse','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Subnet:\x20','ID:\x20','desc','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','2394882DijSWp','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','unlinkSync','590118DxqKaA','readFileSync','cider','Key-Pair:\x20','subnetId','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','deleteKeyPair','1:1','deleteSecurityGroup','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SG\x20NAME:\x20','notice','subnet','constructor','2926824YzQGDo','**\x20Available\x20key-pairs\x20**','Creating\x20user\x20data\x20file\x20in\x20','amiId','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','bright','error','Setting\x20AMI\x20ID\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Setting\x20SG\x20ID\x20to:\x20','build\x20on\x20','search','sort','No\x20instance\x20has\x20been\x20created.','\x20SUBNETID:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','cidr','confirm','Remove\x20the\x20security\x20group\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','env','isFile','ec2create','user-data','maka\x20aws:create-instance\x20--env\x20dev','56ZvcNdU','Security\x20Group\x20Name:\x20[','36NBqapC'];a6c=function(){return au;};return a6c();}import a6f from'path';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x10e;let f=c[d];return f;},a6d(a,b);}import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x11d)]({'name':a6ah(0x142),'aliases':['ci'],'usage':a6ah(0x11e),'examples':[a6ah(0x118),a6ah(0x12c)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a6ah(0x121),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0x149)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x120)]['getConfigFromShorthand'](b[ai(0x114)]),i=this['fsi'][ai(0x13a)](h),j=g+'-'+h,k=await Actions[ai(0x13c)](ai(0x14e)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x111)](ai(0x10f),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x136)](ai(0x131)+r);}else try{Log[ai(0x168)](ai(0x16c));const A=r?r:k,B=await d[ai(0x152)]({'suggestion':A}),C=await Actions[ai(0x13c)](ai(0x14a))||'-1';if(parseInt(C)<0x0){Log[ai(0x172)](ai(0x16f)),Log['notice'](ai(0x179));return;}B?.[ai(0x14b)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x148)],Log[aj(0x136)](aj(0x131)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x139)]();const t=await Actions[ai(0x111)](ai(0x155),!![]);let u;if(t){const E=l===''?await d[ai(0x139)]():l;u=await Actions[ai(0x13c)](ai(0x11a)+k+']')||k;const F=await Actions[ai(0x13c)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ai(0x11f),G=F['split'](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x128)](u);if(I===''){Log[ai(0x168)]('**\x20Available\x20Security\x20Groups\x20**'),J['forEach'](function(L){const ak=ai;L['name']===u?Log[ak(0x168)]('ID:\x20'+L['id']+ak(0x167)+L['name']+ak(0x135)+L[ak(0x137)]):Log[ak(0x171)](ak(0x157)+L['id']+ak(0x167)+L['name']+ak(0x135)+L[ak(0x137)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x140)]();J[ai(0x14b)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x137)],Log[al(0x136)](al(0x175)+m+'\x0a'));});}else m=I,Log['success'](ai(0x175)+m+'\x0a');if(m==='')throw Log[ai(0x172)](ai(0x174));}catch(L){Log[ai(0x172)](L);}try{const M=0x7e6;Log['notice'](ai(0x150));const N=execSync(ai(0x132)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')['toString'](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x14b)](function(S){const am=ai;if(S['alias']===am(0x153)){const T=S['Desc'][am(0x134)](am(0x176))[0x1];P[am(0x13d)]({'amiId':S['ID'],'desc':S[am(0x12a)],'date':T});}}),P[ai(0x178)](function(S,T){const an=ai;return new Date(T['date'])[an(0x12e)]()-new Date(S[an(0x14c)])[an(0x12e)]();}),P[ai(0x14b)](function(S,T){const ao=ai;Q[ao(0x13d)]({'id':T,'amiId':S[ao(0x16e)],'desc':S[ao(0x158)]});}),Q[ai(0x14b)](function(S){const ap=ai;console['log'](ap(0x157)+S['id']+'\x20AMIID:\x20'+S[ap(0x16e)]+ap(0x13e)+S[ap(0x158)]);});const R=await Actions['ask'](ai(0x166))||'0';Q[ai(0x14b)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x136)](aq(0x173)+n+'\x20:\x20'+S[aq(0x158)]));});if(n==='')throw Log[ai(0x172)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x172)](S);}try{Log[ai(0x168)](ai(0x145));const T=execSync(ai(0x130))['toString'](),U=JSON['parse'](T),V=[];U[ai(0x14b)](function(X,Y){const ar=ai;V[ar(0x13d)]({'id':Y,'cidr':X[ar(0x15f)],'az':X['az'],'subnetId':X[ar(0x161)]});}),V[ai(0x14b)](function(X){const as=ai;console[as(0x147)](as(0x157)+X['id']+'\x20CIDR:\x20'+X[as(0x110)]+as(0x133)+X['az']+as(0x10e)+X['subnetId']);});const W=await Actions[ai(0x13c)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x14b)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x136)](at(0x151)+p));});if(p==='')throw Log[ai(0x172)](ai(0x174));}catch(X){Log[ai(0x172)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0x113))||ai(0x164),Z=Y[ai(0x134)](':')[0x0],a0=Y[ai(0x134)](':')[0x1];typeof parseInt(Z)===ai(0x129)&&typeof parseInt(a0)===ai(0x129)&&Log['success'](ai(0x159)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ai(0x13c)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||'t3.micro';typeof a2===ai(0x14d)&&(o=a2);}catch(a3){Log[ai(0x172)](a3);}let x='';try{const a4=await Actions[ai(0x111)](ai(0x127),![]);a4&&(x=a6f[ai(0x146)](i,ai(0x117)),Log[ai(0x168)](ai(0x16d)+x),await this[ai(0x120)][ai(0x12b)]({'filePath':x,'data':''}),await Actions[ai(0x111)](ai(0x162)));}catch(a5){Log[ai(0x172)](a5);}try{const a6=JSON[ai(0x154)](execSync(ai(0x124)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x140)]())[0x0][ai(0x169)];Log[ai(0x168)](ai(0x138)+n),Log[ai(0x168)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x168)](ai(0x125)+o),Log[ai(0x168)](ai(0x160)+r),Log['notice']('Security\x20Group:\x20'+m),Log[ai(0x168)](ai(0x156)+a6);if(x){Log[ai(0x168)](ai(0x11c)+x);const a8=a6g[ai(0x15e)](x)[ai(0x140)]();Log[ai(0x168)](a8);}const a7=await Actions[ai(0x111)](ai(0x170));if(a7){const a9=await d[ai(0x116)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x13b),'Value':'maka-cli'},{'Key':ai(0x122),'Value':h},{'Key':ai(0x144),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x136)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x171)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log['notice'](ai(0x15b));const aa=await Actions[ai(0x111)](ai(0x14f)+r+'\x20?',!![]);aa&&(d[ai(0x163)](r),f[ai(0x115)](s)&&a6g[ai(0x15c)](s));const ab=await Actions[ai(0x111)](ai(0x112)+m+'\x20?',!![]);ab&&d[ai(0x165)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log['error'](ad),process['exit'](0x0);}},a6e);
|
|
1
|
+
const a4ah=a4d;(function(a,b){const ae=a4d,c=a();while(!![]){try{const d=-parseInt(ae(0xd6))/0x1*(-parseInt(ae(0xe4))/0x2)+parseInt(ae(0xe2))/0x3*(-parseInt(ae(0xa0))/0x4)+-parseInt(ae(0xcc))/0x5*(-parseInt(ae(0xce))/0x6)+-parseInt(ae(0x9c))/0x7+parseInt(ae(0xc7))/0x8*(-parseInt(ae(0xbd))/0x9)+parseInt(ae(0xe8))/0xa*(parseInt(ae(0xd1))/0xb)+parseInt(ae(0x7c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd5233));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a4d;if(c){const e=c[af(0x85)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ag=a4d;return a4a[ag(0x9e)]()[ag(0x82)](ag(0x99))[ag(0x9e)]()[ag(0xdf)](a4a)[ag(0x82)](ag(0x99));});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x7b;let f=c[d];return f;},a4d(a,b);}import{Log}from'../../tools/log/log.class.js';function a4c(){const au=['env','parse','96Qurdwj','push','bright','subnet','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','637180MiOWXM','t3.micro','6hWDLQe','Security\x20Group\x20Name:\x20[','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','6010873VeIYDW','Web\x20App','unlinkSync','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','199bmsHyT','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','chooseVPC','Instance\x20Count:\x20','Remove\x20the\x20keypair\x20','**\x20Available\x20key-pairs\x20**','join','ID:\x20','fsi','constructor','amiId','ImageID:','936eQKQIT','cider','11744fFLgQD','alias','\x20SG\x20NAME:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','30htZcPN','maka\x20aws:ci\x20--env\x20prod','sort','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','maka-cli','number','2220852BVuYSR','split','getSecurityGroups','No\x20instance\x20has\x20been\x20created.','ec2createSG','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','search','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ask','apply','Security\x20Group:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','22,80,443','date','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','getTime','createKeyPair','deleteSecurityGroup','string','**\x20Available\x20Subnets\x20**','created-by','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','notice','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','createFile','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','amazon','Desc','(((.+)+)+)+$','Setting\x20AMI\x20ID\x20to\x20','ec2create','2729447EDDYpR','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','toString','readFileSync','10588upxcao','environment','maka\x20aws:create-instance','maka\x20aws:create-instance\x20--env\x20dev','create','\x20SGID:\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','log','build\x20on\x20','EC2\x20Name:\x20[','\x20SUBNETID:\x20','sgId','forEach','user-data','\x20CIDR:\x20','success','\x20:\x20','error','getConfigFromShorthand','confirm','Setting\x20the\x20key-pair\x20to:\x20','Name','subnetId','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Please\x20choose\x20a\x20key\x20to\x20use:\x20','1:1','Setting\x20SG\x20ID\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','773676YoxJsR','getAppConfigPath','deleteKeyPair','\x20AMIID:\x20','name','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Create\x20new\x20AWS\x20instance','desc'];a4c=function(){return au;};return a4c();}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a4ah(0xa4)]({'name':'create-instance','aliases':['ci'],'usage':a4ah(0xa2),'examples':[a4ah(0xa3),a4ah(0xe9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a4ah(0xc5)}],'validOpts':[],'shortDesc':a4ah(0xc3),'description':a4ah(0xa6)},async function(a,b){const ai=a4ah;try{const c=this[ai(0xde)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0xb3)](b['env']),i=this[ai(0xde)][ai(0xbe)](h),j=g+'-'+h,k=await Actions['ask'](ai(0xaa)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xb4)](ai(0x95),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x8c)]({'env':h});r=y,s=z,Log[ai(0xb0)](ai(0xb5)+r);}else try{Log[ai(0x92)](ai(0xdb));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0x84)](ai(0xb9))||'-1';if(parseInt(C)<0x0){Log[ai(0xb2)](ai(0xa7)),Log[ai(0x92)](ai(0x7f));return;}B?.[ai(0xad)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xc1)],Log['success'](aj(0xb5)+r));});}catch(D){Log[ai(0xb2)](D);}l=await d[ai(0xd8)]();const t=await Actions[ai(0xb4)](ai(0xd4),!![]);let u;if(t){const E=l===''?await d[ai(0xd8)]():l;u=await Actions[ai(0x84)](ai(0xcf)+k+']')||k;const F=await Actions[ai(0x84)](ai(0x8a))||ai(0x88),G=F['split'](',');await d[ai(0x80)]({'description':ai(0xd2),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x7e)](u);if(I===''){Log[ai(0x92)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0xad)](function(L){const ak=ai;L[ak(0xc1)]===u?Log[ak(0x92)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xc1)]+ak(0xa5)+L['sgId']):Log[ak(0xc9)](ak(0xdd)+L['id']+ak(0xe6)+L['name']+ak(0xa5)+L[ak(0xac)]);});const K=await Actions[ai(0x84)](ai(0x91)+H+']\x20')||H[ai(0x9e)]();J[ai(0xad)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xac)],Log[al(0xb0)](al(0xbb)+m+'\x0a'));});}else m=I,Log['success'](ai(0xbb)+m+'\x0a');if(m==='')throw Log[ai(0xb2)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0xb2)](L);}try{const M=0x7e6;Log['notice']('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0xcb)+M+ai(0xb8))[ai(0x9e)](),O=JSON[ai(0xc6)](N),P=[],Q=[];O[ai(0xad)](function(S){const am=ai;if(S[am(0xe5)]===am(0x97)){const T=S[am(0x98)][am(0x7d)](am(0xa9))[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0x98)],'date':T});}}),P[ai(0xea)](function(S,T){const an=ai;return new Date(T[an(0x89)])[an(0x8b)]()-new Date(S[an(0x89)])[an(0x8b)]();}),P[ai(0xad)](function(S,T){const ao=ai;Q[ao(0xc8)]({'id':T,'amiId':S[ao(0xe0)],'desc':S[ao(0xc4)]});}),Q[ai(0xad)](function(S){const ap=ai;console[ap(0xa8)](ap(0xdd)+S['id']+ap(0xc0)+S[ap(0xe0)]+'\x20DESCRIPTION:\x20'+S[ap(0xc4)]);});const R=await Actions[ai(0x84)](ai(0x93))||'0';Q[ai(0xad)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xe0)],Log[aq(0xb0)](aq(0x9a)+n+aq(0xb1)+S[aq(0xc4)]));});if(n==='')throw Log['error'](ai(0x9d));}catch(S){Log[ai(0xb2)](S);}try{Log['notice'](ai(0x8f));const T=execSync(ai(0x83))[ai(0x9e)](),U=JSON[ai(0xc6)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0xe3)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0xad)](function(X){const as=ai;console[as(0xa8)](as(0xdd)+X['id']+as(0xaf)+X['cidr']+'\x20AZONE:\x20'+X['az']+as(0xab)+X[as(0xb7)]);});const W=await Actions[ai(0x84)](ai(0xd0))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xb7)],Log[at(0xb0)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0xb2)](ai(0x9d));}catch(X){Log[ai(0xb2)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x84)](ai(0xd7))||ai(0xba),Z=Y['split'](':')[0x0],a0=Y[ai(0x7d)](':')[0x1];typeof parseInt(Z)===ai(0x7b)&&typeof parseInt(a0)===ai(0x7b)&&Log[ai(0xb0)](ai(0xeb)+Z+':'+a0);}catch(a1){Log[ai(0xb2)](a1);}try{const a2=await Actions[ai(0x84)](ai(0x96))||ai(0xcd);typeof a2===ai(0x8e)&&(o=a2);}catch(a3){Log[ai(0xb2)](a3);}let x='';try{const a4=await Actions[ai(0xb4)](ai(0xe7),![]);a4&&(x=a4f[ai(0xdc)](i,ai(0xae)),Log[ai(0x92)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0xde)][ai(0x94)]({'filePath':x,'data':''}),await Actions[ai(0xb4)](ai(0xbc)));}catch(a5){Log[ai(0xb2)](a5);}try{const a6=JSON[ai(0xc6)](execSync(ai(0xd5)+p+ai(0x87))[ai(0x9e)]())[0x0][ai(0xca)];Log[ai(0x92)](ai(0xe1)+n),Log[ai(0x92)](ai(0xd9)+v+':'+w),Log[ai(0x92)]('Instace\x20Type:\x20'+o),Log[ai(0x92)]('Key-Pair:\x20'+r),Log[ai(0x92)](ai(0x86)+m),Log[ai(0x92)]('Subnet:\x20'+a6);if(x){Log[ai(0x92)]('User\x20Data:'+x);const a8=a4g[ai(0x9f)](x)[ai(0x9e)]();Log['notice'](a8);}const a7=await Actions[ai(0xb4)](ai(0xc2));if(a7){const a9=await d[ai(0x9b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x90),'Value':ai(0xec)},{'Key':ai(0xa1),'Value':h},{'Key':ai(0xb6),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xb0)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0xc9)](ai(0x81)));}else{Log[ai(0x92)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0xb4)](ai(0xda)+r+'\x20?',!![]);aa&&(d[ai(0xbf)](r),f['isFile'](s)&&a4g[ai(0xd3)](s));const ab=await Actions[ai(0xb4)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x8d)](m);}}catch(ac){Log[ai(0xb2)](ac);}}catch(ad){ad&&Log[ai(0xb2)](ad),process['exit'](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0xb8))/0x1*(-parseInt(g(0xb2))/0x2)+-parseInt(g(0xb0))/0x3+-parseInt(g(0xad))/0x4+parseInt(g(0xa2))/0x5*(-parseInt(g(0xb4))/0x6)+parseInt(g(0xa4))/0x7+-parseInt(g(0xb6))/0x8+parseInt(g(0xaf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x9c63a));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xb9)]()[i(0xb3)](i(0xa9))[i(0xb9)]()[i(0xb7)](a5a)['search'](i(0xa9));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xa2;let f=c[d];return f;},a5d(a,b);}function a5c(){const l=['70062xTFSHl','maka\x20aws:ckp\x20--env\x20prod','7797664OTswpx','constructor','4460jbFGrr','toString','create','310JSmppu','create-key-pair','5313854UjSnJq','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','createKeyPair','maka\x20aws:create-key-pair\x20--env\x20prod','getConfigFromShorthand','(((.+)+)+)+$','env','exit','maka\x20aws:create-key-pair','4694616PYyXLH','apply','32148666HDhokG','1478130nxOVnb','fsi','146yNqwsH','search'];a5c=function(){return l;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0xba)]({'name':a5j(0xa3),'aliases':['ckp'],'usage':a5j(0xac),'examples':[a5j(0xa7),a5j(0xb5)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0xaa)],'validOpts':[],'shortDesc':a5j(0xa5),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0xb1)][k(0xa8)](b[k(0xaa)]);c[k(0xa6)]({'env':d});}catch(f){f&&Log['error'](f),process[k(0xab)](0x0);}},a5e);
|