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

feat: make it possible to choose image name #38

Merged
merged 2 commits into from
Jun 15, 2024
Merged

Conversation

tmlye
Copy link
Member

@tmlye tmlye commented Jun 15, 2024

Extends the svcs image-name command to be able to specify a custom image name instead of using the folder name

@tmlye tmlye requested review from bittermandel and mikn as code owners June 15, 2024 06:09
@@ -291,7 +291,7 @@ impl ManifestBuilder {

pub fn get_image(mut self) -> Result<Self> {
self.manifest.service.image =
get_image_name(&self.api_client, &self.token, &self.org_name, &None)?;
get_image_name(&self.api_client, &self.token, &self.org_name, &None, &None)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably rename get_image and get_image_name. It returns name, but also has a parameter called name.

Copy link
Member Author

Choose a reason for hiding this comment

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

the manifest already has a get_image function so I think it would have conflicts

@@ -43,7 +43,6 @@ impl Token {
}

pub struct UserConfigLoader {
pub path: Utf8PathBuf,
Copy link
Contributor

Choose a reason for hiding this comment

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

This wasn't used before?

Copy link
Member Author

Choose a reason for hiding this comment

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

no

@tmlye tmlye merged commit 17790f0 into main Jun 15, 2024
5 checks passed
@tmlye tmlye deleted the add-image-name-arg branch June 15, 2024 18:40
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.

2 participants