Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing kiota.config spec #3841

Merged
merged 20 commits into from
Jan 24, 2024
Merged

Introducing kiota.config spec #3841

merged 20 commits into from
Jan 24, 2024

Conversation

sebastienlevert
Copy link
Contributor

Bring a more complete spec to #3356. When this gets merged, this feature would be ready for implementation.

@sebastienlevert sebastienlevert requested a review from a team as a code owner November 30, 2023 16:37
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
specs/kiota.config.md Outdated Show resolved Hide resolved
@darrelmiller
Copy link
Member

Commands

kiota client add - locateConfigFile if not found InitConfigFile then AddClientToConfigFile then RefreshDescription then Generate
kiota client edit - locateConfigFile if found, UpdateConfig then Generate
kiota client remove - locateConfigFile if found RemoveClientFromConfig and if clientOutput then RemoveClientFiles
kiota client generate - locateConfigFile, if refresh flag RefreshDescription, then Generate

kiota plugin *
kiota server *

kiota config init - locateConfigFile if not found InitConfigFile
kiota config migrate - locateConfigFile if not found InitConfigFile then AddLockClientsToConfig then RefreshDescription

kiota config searchprovider|registry * --global

kiota config registry --name "apicurio" --urlTemplate "https://registry.apicurio.com?query={searchterm}" --global

kiota search
kiota download
kiota info
kiota login
kiota logout
kiota show

locateConfigFile

Look in the current directory?
If not there, look in all ancestor folders

InitConfigFile

Create the Config file in the current working directory

AddClientToConfigFile

Update config file with client parameters from commandline

RemoveClientFromConfig

Remove client info.

RemoveClientFiles

Generate

Creates the source files

RefreshDescription

Updates the local copy of the OpenAPI description

AddLockClientsToConfig

Locate lock files to migrate under kiota config
For each lock file add to kiota.config

UpdateConfig

Update config file with parameters from commandline

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see the progress here

specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/config-init.md Outdated Show resolved Hide resolved
specs/cli/config-migrate.md Outdated Show resolved Hide resolved
specs/cli/config-migrate.md Show resolved Hide resolved
specs/scenarios/kiota-config.md Outdated Show resolved Hide resolved
specs/schemas/kiota.config.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
specs/cli/client-add.md Show resolved Hide resolved
specs/cli/client-add.md Outdated Show resolved Hide resolved
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

specs/cli/client-add.md Show resolved Hide resolved
specs/cli/client-add.md Show resolved Hide resolved
specs/cli/client-add.md Show resolved Hide resolved
@sebastienlevert sebastienlevert merged commit 6b61fd1 into main Jan 24, 2024
179 of 186 checks passed
@sebastienlevert sebastienlevert deleted the specs/kiota.config branch January 24, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants