Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
owojcikiewicz committed Mar 10, 2024
1 parent 6280009 commit 770f67a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
5 changes: 4 additions & 1 deletion dist/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
declare const config: {
env: {};
env: {
name: string;
value: string;
}[];
portainer: {
baseUrl: string;
username: string;
Expand Down
9 changes: 4 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27049,12 +27049,11 @@ const getPortainerConfig = () => {
};
const getEnv = () => {
const raw = input('env-file', true);
const env = {};
raw.split('\n').forEach((line) => {
const [key, value] = line.split('=');
env[key] = value;
const envs = raw.split('\n');
return envs.map((env) => {
const [name, value] = env.split('=');
return { name, value };
});
return env;
};
const getStackConfig = () => {
const path = input('stack-compose-path', true);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions dist/portainer.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
interface ICreateStackConfig {
env?: {
[key: string]: string;
};
env: {
name: string;
value: string;
}[];
fromAppTemplate?: boolean;
name: string;
stackFileContent: string;
webhook?: string;
}
interface IUpdateStackConfig {
env?: {
[key: string]: string;
};
env: {
name: string;
value: string;
}[];
prune: boolean;
pullImage: boolean;
stackFileContent: string;
Expand Down

0 comments on commit 770f67a

Please sign in to comment.