Skip to content

Commit

Permalink
mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Dec 8, 2021
1 parent d9979e6 commit dcc9bc8
Show file tree
Hide file tree
Showing 60 changed files with 1,800 additions and 27 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"plugin:import/recommended"
],
"rules": {
"no-console": "error"
"no-console": "off"
},
"ignorePatterns": "dist/**/*"
"ignorePatterns": [
// Auto-generated files
"dist/**/*",
"api/**/*"
]
}
4 changes: 2 additions & 2 deletions .openapis
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This file is *safe* to add to source control and will increase the speed of builds
---
- serviceName: auth-sls-rest-api
version: 1.0.0-68
version: 1.0.0
- serviceName: github-sls-rest-api
version: 1.0.0-45
version: 1.0.2-13

4 changes: 2 additions & 2 deletions .scaffoldly/live/services.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"auth-sls-rest-api": {
"base-url": "https://api.saml.to/auth",
"base-url": "https://api-nonlive.saml.to/auth",
"service-name": "auth-sls-rest-api",
"service-slug": "auth"
},
"github-sls-rest-api": {
"base-url": "https://api.saml.to/github",
"base-url": "https://api-nonlive.saml.to/github",
"service-name": "github-sls-rest-api",
"service-slug": "github"
}
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
6 changes: 3 additions & 3 deletions cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/usr/bin/env node

import log from 'loglevel';
import { Commamd } from '../src/command';
import { Command } from '../src/command';

(async () => {
try {
log.debug('Starting CLI');
const command = new Commamd();
const command = new Command('saml-to');
await command.run(process.argv);
} catch (e) {
if (e instanceof Error) {
// eslint-disable-next-line no-console
console.error(`Exror: ${e.message}`);
console.error(`Error: ${e.message}`, e);
process.exit(-1);
}
throw e;
Expand Down
3 changes: 3 additions & 0 deletions dist/cli/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
export {};
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/cli/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions dist/cli/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cli/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions dist/src/command.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare class Command {
private name;
private listRoles;
private githubLogin;
private assume;
constructor(name: string);
run(argv: string[]): Promise<void>;
}
//# sourceMappingURL=command.d.ts.map
1 change: 1 addition & 0 deletions dist/src/command.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 105 additions & 0 deletions dist/src/command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/command.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions dist/src/commands/assume.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Scms } from '../stores/scms';
export declare class Assume {
scms: Scms;
constructor();
handle(role: string, web?: boolean, org?: string, repo?: string, provider?: string): Promise<void>;
private assumeTerminal;
private assumeAws;
private outputEnv;
}
//# sourceMappingURL=assume.d.ts.map
1 change: 1 addition & 0 deletions dist/src/commands/assume.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions dist/src/commands/assume.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/commands/assume.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions dist/src/commands/github-login.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Scms } from '../stores/scms';
export declare type AccessTokenResponse = {
error?: string;
error_description?: string;
access_token: string;
token_type: string;
scope: string;
};
export declare class GithubLogin {
scms: Scms;
constructor();
handle(): Promise<void>;
private getAccessToken;
}
//# sourceMappingURL=github-login.d.ts.map
1 change: 1 addition & 0 deletions dist/src/commands/github-login.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dcc9bc8

Please sign in to comment.